1
0
Fork 0

Show more info when a download fails

pull/3693/merge
Jordi Boggiano 2015-01-31 21:24:16 +00:00
parent be23cbfa6e
commit 777f2e81a3
1 changed files with 2 additions and 2 deletions

View File

@ -90,10 +90,10 @@ class FileDownloader implements DownloaderInterface
} catch (\Exception $e) { } catch (\Exception $e) {
if ($this->io->isDebug()) { if ($this->io->isDebug()) {
$this->io->write(''); $this->io->write('');
$this->io->write('Failed: ['.get_class($e).'] '.$e->getMessage()); $this->io->write('Failed: ['.get_class($e).'] '.$e->getCode().': '.$e->getMessage());
} elseif (count($urls)) { } elseif (count($urls)) {
$this->io->write(''); $this->io->write('');
$this->io->write(' Failed, trying the next URL'); $this->io->write(' Failed, trying the next URL ('.$e->getCode().': '.$e->getMessage().')');
} }
if (!count($urls)) { if (!count($urls)) {