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"; } } ?>