Last active
July 31, 2019 00:54
-
-
Save huangang/d8ac033342b56ff64b3ec66577bbb129 to your computer and use it in GitHub Desktop.
nodejs 捕获未拦截的异常错误
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', function (err) { | |
console.error('uncaughtException', err) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment