diff --git a/XML/RPC2/Util/HTTPRequest.php b/XML/RPC2/Util/HTTPRequest.php index 2a26060..b102d62 100644 --- a/XML/RPC2/Util/HTTPRequest.php +++ b/XML/RPC2/Util/HTTPRequest.php @@ -235,7 +235,7 @@ public function sendRequest() if ($result->getStatus() != 200) throw new XML_RPC2_ReceivedInvalidStatusCodeException('Received non-200 HTTP Code: ' . $result->getStatus() . '. Response body:' . $result->getBody()); } catch (HTTP_Request2_Exception $e) { - throw new XML_RPC2_CurlException($e); + throw new XML_RPC2_CurlException($e->getMessage(), 0, $e); } $this->_body = $result->getBody(); return $result->getBody();