Skip to content

Instantly share code, notes, and snippets.

@bfred-it bfred-it/index.js
Created Sep 14, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.