Created
December 15, 2018 13:26
-
-
Save rodelta/ce219b17d3042ddc0f29e5d84e4ee594 to your computer and use it in GitHub Desktop.
Catch all non handled exceptions in node
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', err => console.error(err)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment