From 560a1930f855d501e5e8266ee70c379e2c2c80df Mon Sep 17 00:00:00 2001 From: LutherSloan Date: Tue, 21 Jan 2014 04:56:46 -0300 Subject: [PATCH] Changed Response in case of exception --- EpiOAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpiOAuth.php b/EpiOAuth.php index 6831b33..6c31c52 100644 --- a/EpiOAuth.php +++ b/EpiOAuth.php @@ -422,7 +422,7 @@ class EpiOAuthException extends Exception { public static function raise($response, $debug) { - $message = $response->responseText; + $message = ($response->responseText != NULL) ? $response->responseText : $response->data; switch($response->code) {