Make sure curl errors without message are shown as code, and add URL linked to the failure
parent
9aefbee53a
commit
8ed2aa8d6d
|
@ -299,7 +299,7 @@ class CurlDownloader
|
||||||
try {
|
try {
|
||||||
// TODO progress
|
// TODO progress
|
||||||
if (CURLE_OK !== $errno || $error) {
|
if (CURLE_OK !== $errno || $error) {
|
||||||
throw new TransportException($error);
|
throw new TransportException('curl error while downloading '.Url::sanitize($progress['url']).': '.($error ?: '#'.$errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
$statusCode = $progress['http_code'];
|
$statusCode = $progress['http_code'];
|
||||||
|
|
Loading…
Reference in New Issue