Created
August 28, 2019 19:59
-
-
Save felipeplets/39eff46b3acb7fd558ea2f9994a72d9e to your computer and use it in GitHub Desktop.
Error handling in JS promises
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
// Assuming I just want to console.log the error message | |
await promiseWillFail().catch((err) => console.log(err.message)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment