Created
October 11, 2017 14:48
-
-
Save zlatkov/7282966e52cab3eee85794d5e8df6928 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function loadData() { | |
await callAPromise1() | |
await callAPromise2() | |
await callAPromise3() | |
await callAPromise4() | |
await callAPromise5() | |
throw new Error("boom"); | |
} | |
loadData() | |
.catch(function(e) { | |
console.log(err); | |
// output | |
// Error: boom at loadData (index.js:7:9) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment