Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lubien
Created January 23, 2018 00:28
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/a00d27132d87d277050ce21e764519b6 to your computer and use it in GitHub Desktop.
Save lubien/a00d27132d87d277050ce21e764519b6 to your computer and use it in GitHub Desktop.
function someHellComputation(initialData) {
return fnA(initialData)
.then(fnB)
.then(fnC)
}
someHellComputation(10)
.then(console.log)
.catch(err => {
// where does err come from: fnA, fnB, fnC?
// how should I handle these errors?
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment