Created
March 9, 2019 23:50
-
-
Save deepal/75b536ef0d1be509808a276d38444193 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', (err) => { | |
| logger.fatal('an uncaught exception detected', err); | |
| process.exit(-1); | |
| }); | |
| process.on('unhandledRejection', (err) => { | |
| logger.fatal('an unhandled rejection detected', err); | |
| process.exit(-1); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment