Created
September 14, 2017 10:51
-
-
Save fregante/cf4d0415c4802e0c81812ae9bbb821d8 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
Promise.reject(1).catch(err => { | |
if (err instanceof Error) { | |
throw err; // Exception | |
} | |
// Rejection | |
}).catch(exitProcess) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment