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