mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Log cURL errors
This commit is contained in:
parent
7509df0dda
commit
f182c281fe
@ -29,6 +29,11 @@ class CurlUtils
|
||||
|
||||
curl_setopt_array($curl, $opts);
|
||||
$response = curl_exec($curl);
|
||||
|
||||
if ($error = curl_error($curl)) {
|
||||
Utils::logError('CURL Error #' . curl_errno($curl) . ': ' . $error);
|
||||
}
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
return $response;
|
||||
|
Loading…
Reference in New Issue
Block a user