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;