|
|
@@ -297,10 +297,11 @@ class PayPlus
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
|
|
|
|
$result = curl_exec($ch);
|
|
|
- if (curl_errno($ch)) {
|
|
|
+ $curl_errno = curl_errno($ch);
|
|
|
+ if ($curl_errno) {
|
|
|
$error = curl_error($ch);
|
|
|
curl_close($ch);
|
|
|
- Util::WriteLog('PayPlus_error', 'CURL Error: ' . $error);
|
|
|
+ Util::WriteLog('PayPlus_error', 'CURL Error: ' . "$curl_errno" . $error);
|
|
|
throw new Exception($error);
|
|
|
}
|
|
|
|