mirror of
https://github.com/getgrav/grav.git
synced 2026-07-08 09:41:30 +02:00
More detailed error for cURL
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user