Merge pull request #9397 from ondrejmirtes/patch-1
Simplify code in FileDownloader.phppull/8001/head
commit
cdd7460f9f
|
@ -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().')');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue