Skip to content

Instantly share code, notes, and snippets.

@santiq
Created July 1, 2018 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santiq/a5ad948a5423f20e4bcdd036b37f21fc to your computer and use it in GitHub Desktop.
Save santiq/a5ad948a5423f20e4bcdd036b37f21fc to your computer and use it in GitHub Desktop.
process.on('unhandledRejection', (error, promise) => {
console.log(' Oh Lord! We forgot to handle a promise rejection here: ', promise);
console.log(' The error was: ', error );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment