From 5d25187ef109891a1fb2f7366cb08f85e90ba1c5 Mon Sep 17 00:00:00 2001 From: Daniel Paul Carbone Date: Thu, 21 Jul 2016 14:54:06 -0500 Subject: [PATCH] requireOK now uses the response body rather than the curl error to respond to errors --- src/AbstractApiClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractApiClient.php b/src/AbstractApiClient.php index 49a8434..974a413 100644 --- a/src/AbstractApiClient.php +++ b/src/AbstractApiClient.php @@ -54,7 +54,7 @@ protected function requireOK(array $requestResult) get_class($this), $requestResult[1]->url, $requestResult[1]->httpCode, - $requestResult[1]->curlError + $requestResult[1]->body )); Logger::error($err);