textadventures / squiffy-editor

MIT License
18 stars 13 forks source link

Fix for issue #5: Show compiler warnings #15

Closed Baltasarq closed 6 years ago

Baltasarq commented 6 years ago

ChangeLog: Now the compile() function in desktop.js captures all messages sent to the console, and sends them back tofail(s, m) and success(s, m), being s the compiled story and m the warning/error messages, if any. Both functions, fail() and success(), are defined in squiffy-editor.js.