Last active
June 23, 2016 19:34
-
-
Save jgraham909/d2596ea59d1fa9a7fe642358cb644546 to your computer and use it in GitHub Desktop.
Javascript Promises. Where errors are silently swallowed with no indication.If you use promises and don't have something like this snippet in your code, good luck!
This file contains 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', (reason, promise) => { | |
console.error('ERROR: Unhandled Rejection: ', reason); | |
console.dir(promise); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment