process.on('unhandledRejection', (reason, promise) => { console.log('Unhandled Rejection at:', promise, 'reason:', reason); }); process.on('uncaughtException', (err, origin) => { console.log( process.stderr.fd, `Caught exception: ${err}\n` + `Exception origin: ${origin}` ); });
292900cookie-checkNode global error handling