Hacker News new | ask | show | jobs
by tracker1 2562 days ago
I've generally had the opinion of a let it all burn first approach... in web ui, first thing I do is mount an error handler for the window and unhandled promises that effectively clears body and set's its' innerHTML to <h1>Unexpected Error</h1>. Similar elsewhere forcing the process to exit.

If you're expecting a certain error condition, handle it, otherwise blow up the world, because you can no longer trust it.