Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #17 from chrissnyder/error-response
Browse files Browse the repository at this point in the history
Return full response on error
  • Loading branch information
edpaget committed Oct 1, 2015
2 parents 867e1da + 913e5ee commit 3e918c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/make-http-request.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ makeHTTPRequest = (method, url, data, headers = {}, modify) ->
.then resolve
.catch reject
else if err?
reject err
reject response
else
resolve response

Expand Down

0 comments on commit 3e918c9

Please sign in to comment.