1
0
Fork 0

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

pull/9494/head
Jordi Boggiano 2020-11-16 22:41:19 +01:00
parent 9aefbee53a
commit 8ed2aa8d6d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -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'];