From 98380f3aadfe0abee04f365bc9014e6fdfe0fe1b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 12 Apr 2012 22:35:16 +0200 Subject: [PATCH] Improve unzip failure message --- src/Composer/Downloader/ZipDownloader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index fac30eef2..4ad99095a 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/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);