Last active
July 1, 2018 22:45
-
-
Save santiq/47199e231ffccea51ee013ecd327d6e1 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('Oh my god, something terrible happend: ', error); | |
process.exit(1); // exit application | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment