Skip to content

Instantly share code, notes, and snippets.

@w3cj
Created April 21, 2018 13:48
Show Gist options
  • Save w3cj/386b945dcb7b68594d99a4a97ea8291b to your computer and use it in GitHub Desktop.
Save w3cj/386b945dcb7b68594d99a4a97ea8291b to your computer and use it in GitHub Desktop.
process.on('uncaughtException', (error) => {
console.log('Uncaught Exception:', error);
});
process.on('unhandledRejection', (reason, p) => {
console.log('Unhandled Rejection at:', p, 'reason:', reason);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment