From 913e5eee442ee9c598672c8b5b540636d7709c46 Mon Sep 17 00:00:00 2001 From: Chris Snyder Date: Thu, 1 Oct 2015 14:37:24 -0500 Subject: [PATCH] Return full response on error Rather than parsed error from superagent --- src/make-http-request.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/make-http-request.coffee b/src/make-http-request.coffee index d6cc0ae..408ef97 100644 --- a/src/make-http-request.coffee +++ b/src/make-http-request.coffee @@ -31,7 +31,7 @@ makeHTTPRequest = (method, url, data, headers = {}, modify) -> .then resolve .catch reject else if err? - reject err + reject response else resolve response