Skip to content

Commit

Permalink
add curl info into exception (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK authored Jan 29, 2020
1 parent f449a2a commit c6ce1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/PayPal/Core/PPHttpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function execute($data)
}
if (curl_errno($ch)) {
$ex = new PPConnectionException($this->httpConfig->getUrl(), curl_error($ch), curl_errno($ch));
$ex->setData(array('curl_getinfo' => curl_getinfo($ch, CURLINFO_PRIMARY_IP)));
curl_close($ch);
throw $ex;
}
Expand Down

0 comments on commit c6ce1aa

Please sign in to comment.