Re:Error Handling in Nodejs
by inglor on Friday July 17, 2015 @08:56AM
(#9902471)
process.on('unhandledRejection', function(promise,reason) {` since io.js 1.3
[ Parent
| on HN ]
I haven't looked at io.js in a short while. Does it log to console.error by default (like Chrome now does)?
This mistake is going to be most frustrating for those who don't realize that "unhandledRejection" is a case they even need to consider. People learning JS and having nothing happen when they run (erroneous) code are going to be pulling their hair out.