Make sure curl errors without message are shown as code, and add URL linked to the failure

main
Jordi Boggiano 4 years ago
parent 9aefbee53a
commit 8ed2aa8d6d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -299,7 +299,7 @@ class CurlDownloader
try {
// TODO progress
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'];

Loading…
Cancel
Save