2

Follow up question re. trap when.js unhandled rejections

the Node.js process.on() example prevents the normal console/prettymonitor output from displaying. Is there a way to retain this. Also the docs show: process.on('unhandledRejection', function(reason, key) not ..(promise,reason). ref: http://github.com/cujojs/when/blob/master/docs/debug-api.md

Community
  • 1
  • 1
nevf
  • 4,596
  • 6
  • 31
  • 32
  • Your problem doesn't seem to be related to promises or when.js at all, the process.on hook for unhandled rejection cannot prevent output from displaying or do whatever it is that you are claiming. – Esailija Apr 28 '15 at 12:29
  • @Esailija If I remove the unhandledRejection handler I see the prettymonitor output. If I leave it in place I just see the plain output sent to console. – nevf Apr 29 '15 at 12:31

0 Answers0