1
0
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:
Hillel Coren 2016-12-01 15:03:12 +02:00
parent 7509df0dda
commit f182c281fe

View File

@ -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;