Include full error message in debug mode
parent
b16c5fbeb9
commit
33badac0a8
|
@ -77,7 +77,11 @@ abstract class ArchiveDownloader extends FileDownloader
|
||||||
|
|
||||||
// retry downloading if we have an invalid zip file
|
// retry downloading if we have an invalid zip file
|
||||||
if ($retries && $e instanceof \UnexpectedValueException && class_exists('ZipArchive') && $e->getCode() === \ZipArchive::ER_NOZIP) {
|
if ($retries && $e instanceof \UnexpectedValueException && class_exists('ZipArchive') && $e->getCode() === \ZipArchive::ER_NOZIP) {
|
||||||
$this->io->writeError(' Invalid zip file, retrying...');
|
if ($this->io->isDebug()) {
|
||||||
|
$this->io->writeError(' Invalid zip file ('.$e->getMessage().'), retrying...');
|
||||||
|
} else {
|
||||||
|
$this->io->writeError(' Invalid zip file, retrying...');
|
||||||
|
}
|
||||||
usleep(500000);
|
usleep(500000);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue