Created
July 1, 2018 22:44
-
-
Save santiq/a5ad948a5423f20e4bcdd036b37f21fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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