katsaii / catspeak-lang

A cross-platform modding language for GameMaker games.
https://www.katsaii.com/catspeak-lang/
MIT License
93 stars 6 forks source link

env.applyPreset() needs a clearer error message #71

Closed tabularelf closed 1 year ago

tabularelf commented 1 year ago

env.applyPreset() should be something clearer than "you have likely encountered a compiler bug". As it makes it harder to narrow down the exact issue.

For example in my case, I commented out CatspeakPreset.GML, but forgot to include the comma, which passed in undefined (as per an optional argument skip, not a specific Catspeak issue there of course), and I was confused when it gave me that error and I was double checking my Catspeak code.

Catspeak.applyPreset(/*CatspeakPreset.GML*/, CatspeakPreset.MATH)