More detailed error for cURL

This commit is contained in:
Djamil Legato
2016-09-23 15:25:35 -07:00
parent 18dff3f8e3
commit 89070f0bbf

View File

@@ -307,7 +307,7 @@ class Response
$errno = curl_errno($ch);
if ($errno) {
$error_message = curl_strerror($errno);
$error_message = curl_strerror($errno) . "\n" . curl_error($ch);
throw new \RuntimeException("cURL error ({$errno}):\n {$error_message}");
}