1
0
Fork 0

Merge pull request #9397 from ondrejmirtes/patch-1

Simplify code in FileDownloader.php
pull/8001/head
Jordi Boggiano 2020-11-02 21:22:42 +01:00 committed by GitHub
commit cdd7460f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
if ($io->isDebug()) {
$io->writeError(' Failed downloading '.$package->getName().': ['.get_class($e).'] '.$e->getCode().': '.$e->getMessage());
$io->writeError(' Trying the next URL for '.$package->getName());
} elseif (count($urls)) {
} else {
$io->writeError(' Failed downloading '.$package->getName().', trying the next URL ('.$e->getCode().': '.$e->getMessage().')');
}