Created
August 8, 2016 22:09
-
-
Save mrister/7c9075d504a05feae928504f51a46ca1 to your computer and use it in GitHub Desktop.
Unhandled rejection listener
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('unhandledRejection', function (reason, promise) { | |
logger.error('Unhandled rejection', {reason: reason, promise: promise}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment