Recent | Popular
#nodejs #promises #unhandled
process.on('unhandledRejection', (error) => { throw error; }); process.on('uncaughtException', (error) => { logError(error); if (!isOperationalError(error)) { process.exit(1); } });
Tue Aug 24 2021 16:30:12 GMT+0000 (Coordinated Universal Time) https://sematext.com/blog/node-js-error-handling/