Created
March 21, 2018 11:03
-
-
Save olbrichj/432ac43dd450b0c6210d6bc9d37c35d9 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
fetchPromise().then { value in | |
return errorPromise(value) // this will throw an error | |
}.then { value in | |
//this will not execute on error | |
}.catch { error in | |
//we got an error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment