Skip to content

Instantly share code, notes, and snippets.

@deepal
Last active October 14, 2019 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/154ce3826cddbbd5b79f2e3897dd0ed7 to your computer and use it in GitHub Desktop.
Save deepal/154ce3826cddbbd5b79f2e3897dd0ed7 to your computer and use it in GitHub Desktop.
process.on('uncaughtException', (err) => {
logger.fatal('an uncaught exception detected', err);
});
process.on('unhandledRejection', (err) => {
logger.fatal('an unhandled rejection detected', err)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment