Skip to content

Commit

Permalink
Merge pull request #1 from Textalk/replace-die-with-exception
Browse files Browse the repository at this point in the history
Replace die() with Exception
  • Loading branch information
sirn-se authored Sep 1, 2017
2 parents bb27369 + 61e64ae commit e905df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paysonapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private function doCurlRequest($url, $credentials, $postData) {
$result = curl_exec($ch);

if ($result === false) {
die('Curl error: ' . curl_error($ch));
throw new PaysonApi_Exception('Curl error: ' . curl_error($ch));
}

$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
Expand Down

0 comments on commit e905df1

Please sign in to comment.