adapap / OWScript

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

Fix creating OWSErrors causing TypeErrors #20

Closed netux closed 5 years ago

netux commented 5 years ago

The Parser and the Lexer were throwing TypeErrors instead of OWSErrors when something was wrong.

This sets a default for pos in OWSError.__init__, making it truly optional and fixing the TypeErrors