1
0
Fork 0

fixed some bugs in the validator

pull/1170/head
Johannes M. Schmitt 2012-10-01 21:47:17 +02:00
parent 4e769e1100
commit 7ff550e4a6
1 changed files with 4 additions and 4 deletions

View File

@ -60,15 +60,15 @@ class ConfigValidator
} catch (JsonValidationException $e) {
foreach ($e->getErrors() as $message) {
if ($laxValid) {
$publishErrors[] = '<error>Publish Error: ' . $message . '</error>';
$publishErrors[] = $message;
} else {
$errors[] = '<error>' . $message . '</error>';
$errors[] = $message;
}
}
} catch (\Exception $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');
$errors[] = $e->getMessage();
return 1;
return;
}
// validate actual data