Skip to content

Commit 61e64ae

Browse files
author
Sören
committed
Replace die() with Exception
1 parent bb27369 commit 61e64ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/paysonapi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ private function doCurlRequest($url, $credentials, $postData) {
303303
$result = curl_exec($ch);
304304

305305
if ($result === false) {
306-
die('Curl error: ' . curl_error($ch));
306+
throw new PaysonApi_Exception('Curl error: ' . curl_error($ch));
307307
}
308308

309309
$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

0 commit comments

Comments
 (0)