Skip to content

Instantly share code, notes, and snippets.

@baskeboler
Created April 23, 2018 19:25
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 baskeboler/ef0bb5cfe90f308a2101f3c8b85f59d3 to your computer and use it in GitHub Desktop.
Save baskeboler/ef0bb5cfe90f308a2101f3c8b85f59d3 to your computer and use it in GitHub Desktop.
Promise.resolve(1)
.then((x) => x + 1)
.then((x) => { throw new Error('My Error') })
.catch(() => 1)
.then((x) => x + 1)
.then((x) => console.log(x))
.catch(console.error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment