Skip to content

Instantly share code, notes, and snippets.

@lubien
Created January 23, 2018 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lubien/17437e5ce5c60f95c387a1ec4d3b31c5 to your computer and use it in GitHub Desktop.
Save lubien/17437e5ce5c60f95c387a1ec4d3b31c5 to your computer and use it in GitHub Desktop.
Promise.reject('some error')
.catch(err => { throw err }) // runs
.catch(err => console.log(2)) // runs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment