Last active
January 4, 2019 01:20
-
-
Save a0viedo/0de3036c9d50efbf5e70bf218097dc68 to your computer and use it in GitHub Desktop.
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('uncaughtException', err => { | |
console.log('something terribly wrong happened', err); | |
server.close(() => process.exit(1)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment