process.on('unhandledRejection', error => { // Will print "unhandledRejection error details " console.log('unhandledRejection', error); });