adapap / OWScript

Python-like scripting language which transpiles into Overwatch Workshop script rulesets.
MIT License
37 stars 2 forks source link

On error thrown, exit with error. #27

Closed MatthewSH closed 5 years ago

MatthewSH commented 5 years ago

While working on the compiler for OWScript Global (NPM), I'm trying to only reject / fail on OWS error, but it doesn't actually exit with an error code. So I can't catch the error. I can, in theory, look for a string...but this isn't the cleanest solution.

For context here's what it looks like with the string includes, but this is really also a quality of life thing as well.

Output