From f16e3a88e28228af67cc98950a2b621713f4aac3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 3 Jun 2014 10:46:14 +0200 Subject: [PATCH] Clean up code format and error message --- src/Composer/Downloader/ZipDownloader.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); } }