programsam / binkjs

Music archival site BINK, rewritten as a Node.js express app
0 stars 1 forks source link

Cross-cutting concerns like error handling #52

Open programsam opened 6 years ago

programsam commented 6 years ago

Handle when the database is funky, etc.

programsam commented 6 years ago

Also what if there is no server running or nginx says 502 etc

programsam commented 6 years ago

jQuery knows how to register global error handlers, which could render a pop up/modal that show what the problem is.

programsam commented 6 years ago

Definitely these error handlers are in place and render a modal when there's a problem.

programsam commented 6 years ago

Needs more information in the error message I think.

programsam commented 3 years ago

Did some work on this. 90% of the time, it's handled by the Ajax Global Error handler, which just spits out what the basic error was using the binkAlertModal. It would be good (though difficult) to get the server-side error message to propagate all the way out to the user for debugging purposes.