1
0
Fork 0

Include full error message in debug mode

pull/4345/head
Jordi Boggiano 2015-08-10 00:57:13 +01:00
parent b16c5fbeb9
commit 33badac0a8
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ abstract class ArchiveDownloader extends FileDownloader
// retry downloading if we have an invalid zip file
if ($retries && $e instanceof \UnexpectedValueException && class_exists('ZipArchive') && $e->getCode() === \ZipArchive::ER_NOZIP) {
if ($this->io->isDebug()) {
$this->io->writeError(' Invalid zip file ('.$e->getMessage().'), retrying...');
} else {
$this->io->writeError(' Invalid zip file, retrying...');
}
usleep(500000);
continue;
}