Skip to content

Instantly share code, notes, and snippets.

@pionize
Created April 17, 2017 10:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pionize/87f9eadee525f71b2b2bdbf29b96a8fe to your computer and use it in GitHub Desktop.
Promise Catch
somePromise().then(function () {
return anotherPromise();
}).then(function () {
return yetAnotherPromise();
}).catch(console.log.bind(console));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment