dfabulich / choicescript

ChoiceScript is a language for developing multiple-choice games.
http://www.choiceofgames.com/blog/choicescript-intro/
Other
410 stars 123 forks source link

Add scene names to operator and token error messages. #137

Closed sgranade closed 3 years ago

sgranade commented 3 years ago

Minor patch to add scene names to errors that previously were only showing line numbers. This impacts one token and a number of operators, and the underlying utils functions (num() and bool()).

dfabulich commented 3 years ago

This breaks a bunch of unit tests. (ant unittest will run them.)

sgranade commented 3 years ago

Whoops, sure enough! I didn't handle null values of scene objects properly. I fixed that, and added unit tests for the error messages as well.

dfabulich commented 3 years ago

Thanks!