Skip to content

Instantly share code, notes, and snippets.

@deepal
Created March 9, 2019 23:50
Show Gist options
  • Select an option

  • Save deepal/75b536ef0d1be509808a276d38444193 to your computer and use it in GitHub Desktop.

Select an option

Save deepal/75b536ef0d1be509808a276d38444193 to your computer and use it in GitHub Desktop.
process.on('uncaughtException', (err) => {
logger.fatal('an uncaught exception detected', err);
process.exit(-1);
});
process.on('unhandledRejection', (err) => {
logger.fatal('an unhandled rejection detected', err);
process.exit(-1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment