UniversityRadioYork / ury-rapid

(obsolete) Radio API Daemon
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Exceptions in server_app should be caught #9

Open MattWindsor91 opened 10 years ago

MattWindsor91 commented 10 years ago

Any exception that doesn't kill off bra should be caught if it's raised in the server_app HTTP interface.

Currently exception backtraces are sent to the client, which is pretty bad when the client is expecting eg. JSON.

Backtraces should be logged somewhere and a less verbose HTTP 500 in the appropriate format should be served up to the client instead.