UNPKG

lamed_learn

Version:
10 lines (9 loc) 274 B
// Uncaught Exception thrown! process .on('unhandledRejection', (reason, p) => { console.error(reason, 'Unhandled Rejection at Promise', p) }) .on('uncaughtException', err => { console.error(err, 'Uncaught Exception thrown!') process.exit(1) })