From 7ff550e4a6e036e07bacc93a8a9e20085aba10fc Mon Sep 17 00:00:00 2001 From: "Johannes M. Schmitt" Date: Mon, 1 Oct 2012 21:47:17 +0200 Subject: [PATCH] fixed some bugs in the validator --- src/Composer/Util/ConfigValidator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Composer/Util/ConfigValidator.php b/src/Composer/Util/ConfigValidator.php index 8fd363138..7aedb9398 100644 --- a/src/Composer/Util/ConfigValidator.php +++ b/src/Composer/Util/ConfigValidator.php @@ -60,15 +60,15 @@ class ConfigValidator } catch (JsonValidationException $e) { foreach ($e->getErrors() as $message) { if ($laxValid) { - $publishErrors[] = 'Publish Error: ' . $message . ''; + $publishErrors[] = $message; } else { - $errors[] = '' . $message . ''; + $errors[] = $message; } } } catch (\Exception $e) { - $output->writeln('' . $e->getMessage() . ''); + $errors[] = $e->getMessage(); - return 1; + return; } // validate actual data