Better Error Messages for Invalid Scenes in Compiled Games
CareyJWilliams opened this issue · 0 comments
CareyJWilliams commented
When navigating to an invalid scene in a compiled game (whether by typo or because it wasn't included properly) the error is uncaught and the browser one is rather unhelpful:
"Cannot read property 'crc' of undefined"
Can I propose an if (typeof result === 'undefined') throw (this.name doesn't exist error) check here?
https://github.com/dfabulich/choicescript/blob/master/web/scene.js#L191