Last active
October 14, 2015 18:47
-
-
Save ruprict/4a6264dbdd9b20b6a236 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 deserializeError(res) { | |
// new rejected Promise to go down failure chain | |
return deserialize(res).then(function(body){ | |
throw body; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment