瀏覽代碼

Add process error to the output of failed unzipping

Jordi Boggiano 9 年之前
父節點
當前提交
d35fc31f62
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Downloader/ZipDownloader.php

+ 1 - 1
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)) {