1
0
Fork 0

Add process error to the output of failed unzipping

pull/4599/head
Jordi Boggiano 2015-11-10 13:29:51 +00:00
parent fc0da27d84
commit d35fc31f62
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class ZipDownloader extends ArchiveDownloader
$zipArchive = new ZipArchive(); $zipArchive = new ZipArchive();
if (true !== ($retval = $zipArchive->open($file))) { if (true !== ($retval = $zipArchive->open($file))) {
throw new \UnexpectedValueException($this->getErrorMessage($retval, $file), $retval); throw new \UnexpectedValueException(rtrim($this->getErrorMessage($retval, $file)."\n".$processError), $retval);
} }
if (true !== $zipArchive->extractTo($path)) { if (true !== $zipArchive->extractTo($path)) {