Created
January 23, 2018 00:28
-
-
Save lubien/a00d27132d87d277050ce21e764519b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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