1
0
Fork 0

Simplify code in FileDownloader.php

pull/9397/head
Ondřej Mirtes 2020-11-02 15:10:57 +01:00 committed by GitHub
parent 1bf2df19dd
commit 48b23b1607
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().')');
}