From d35fc31f625d4fc1446b44a58fbd7b4e0d8838e9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 10 Nov 2015 13:29:51 +0000 Subject: [PATCH] Add process error to the output of failed unzipping --- src/Composer/Downloader/ZipDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 1370d82af..dea34aedd 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -73,7 +73,7 @@ class ZipDownloader extends ArchiveDownloader $zipArchive = new ZipArchive(); 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)) {