News for hackers. Stuff that matters.
Re:Error handling in Node.js and Express by scriby on Wednesday August 14, 2013 @02:50PM (#6213452)
Express does return a 500 on exception by default. This article showed details about how to customize the error page.
Re:Error handling in Node.js and Express by ef4 on Wednesday August 14, 2013 @05:43PM (#6214494)
Only if you get lucky enough to hit the exception on the initial call stack. If you do anything asynchronous first and then throw the exception, express just either leaves the client connection hanging (if you trap and log unhandled exceptions) or crashes all client connections (if you don't).