Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unhandledpromiserejectionwarning listener

process.on('unhandledRejection', error => {
  // Will print "unhandledRejection error details "
  console.log('unhandledRejection', error);
});
 
PREVIOUS NEXT
Tagged: #unhandledpromiserejectionwarning #listener
ADD COMMENT
Topic
Name
5+2 =