Dovyski / Codebot

Free and open source (MIT license) web-based IDE focused on game development.
https://codebot.cc
MIT License
94 stars 7 forks source link

JSONfy all error on server-side #66

Open Dovyski opened 8 years ago

Dovyski commented 8 years ago

If something wrong happens at the server-side (API error, for instance), the PHP script goes crazy and abort, but no useful JSON information is sent back to the client.

The server-side should catch all erros instead of just dying, sending useful info back if something wrong just happened.