Created
April 21, 2018 13:48
-
-
Save w3cj/386b945dcb7b68594d99a4a97ea8291b 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('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