Browse Source

Fix regression when using -vvv

Jordi Boggiano 11 years ago
parent
commit
9cbfe31983

+ 3 - 1
src/Composer/Downloader/FileDownloader.php

@@ -97,7 +97,9 @@ class FileDownloader implements DownloaderInterface
                 } elseif (count($urls)) {
                     $this->io->write('');
                     $this->io->write('    Failed, trying the next URL');
-                } else {
+                }
+
+                if (!count($urls)) {
                     throw $e;
                 }
             }

+ 2 - 1
src/Composer/Downloader/VcsDownloader.php

@@ -67,7 +67,8 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
                     $this->io->write('Failed: ['.get_class($e).'] '.$e->getMessage());
                 } elseif (count($urls)) {
                     $this->io->write('    Failed, trying the next URL');
-                } else {
+                }
+                if (!count($urls)) {
                     throw $e;
                 }
             }