From a07925c39a4c33b0bfc87664c8ae4c807f0effc4 Mon Sep 17 00:00:00 2001 From: Nick Hargreaves Date: Wed, 4 Apr 2018 12:39:58 +0300 Subject: [PATCH] better error display --- lib/Beyonic/Beyonic_Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Beyonic/Beyonic_Exception.php b/lib/Beyonic/Beyonic_Exception.php index 9fce866..273e1b8 100644 --- a/lib/Beyonic/Beyonic_Exception.php +++ b/lib/Beyonic/Beyonic_Exception.php @@ -23,7 +23,7 @@ public function __construct($message, $code, $requestURL, $requestMethod, $respo // custom string representation of object public function __toString() { - return __CLASS__ . " Error {$this->code}: {$this->message} when sending {$this->requestMethod} to {$this->requestURL}\n"; + return __CLASS__ . " Error {$this->code}: {$this->responseBody} when sending {$this->requestMethod} to {$this->requestURL}\n"; } } ?>