소스 검색

Improve unzip failure message

Jordi Boggiano 13 년 전
부모
커밋
98380f3aad
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Composer/Downloader/ZipDownloader.php

+ 2 - 1
src/Composer/Downloader/ZipDownloader.php

@@ -42,7 +42,8 @@ class ZipDownloader extends ArchiveDownloader
                     return;
                 }
 
-                $error = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput();
+                $error = "Could not decompress the archive, enable the PHP zip extension or install unzip.\n".
+                    'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput();
             }
 
             throw new \RuntimeException($error);