Skip to content

Commit

Permalink
Merge pull request #7 from PiBa-NL/patch-1
Browse files Browse the repository at this point in the history
Don't include the full stacktrace of the original exception in the message of the CurlException.
  • Loading branch information
ashnazg authored Jul 20, 2018
2 parents 2f661d6 + 5fdd732 commit 571fef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XML/RPC2/Util/HTTPRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 571fef2

Please sign in to comment.