2 ms·
Just wanting to add to this - bluebird indeed solves many of the problems in the post (even the 'unimportant' ones like having to call .done). It is absolutely
by joepie91_ 12y ago
Just wanting to add to this - bluebird indeed solves many of the problems in the post (even the 'unimportant' ones like having to call .done). It is absolutely worth looking into.
I should also point out that while bluebird doesn't crash the process on uncaught exceptions, it does print a stack to stdout - and you can fairly easily have a catch-all handler in whatever framework you are using to display/process uncaught exceptions in the desired format. This is what express-promise-router does, for example.