-
-
Save pionize/8cbafa3e6a147dd0ba0b3000cb49f7c2 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
somePromise().then(function () { | |
throw new Error('ehm..error!'); | |
}).catch(function (err) { | |
// I caught your error | |
}); | |
somePromise().then(function () { | |
throw new Error('ehm..error!'); | |
}, function (err) { | |
// I didn't catch your error | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment