diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 3097d06a8..88c0e4346 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -45,10 +45,8 @@ class ZipDownloader extends ArchiveDownloader } $processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(); - } - catch(\Exception $e) - { - $processError = $e->getMessage(); + } catch(\Exception $e) { + $processError = 'Failed to execute ' . $command . "\n\n" . $e->getMessage(); } }