fixed some bugs in the validator
parent
4e769e1100
commit
7ff550e4a6
|
@ -60,15 +60,15 @@ class ConfigValidator
|
||||||
} catch (JsonValidationException $e) {
|
} catch (JsonValidationException $e) {
|
||||||
foreach ($e->getErrors() as $message) {
|
foreach ($e->getErrors() as $message) {
|
||||||
if ($laxValid) {
|
if ($laxValid) {
|
||||||
$publishErrors[] = '<error>Publish Error: ' . $message . '</error>';
|
$publishErrors[] = $message;
|
||||||
} else {
|
} else {
|
||||||
$errors[] = '<error>' . $message . '</error>';
|
$errors[] = $message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$output->writeln('<error>' . $e->getMessage() . '</error>');
|
$errors[] = $e->getMessage();
|
||||||
|
|
||||||
return 1;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate actual data
|
// validate actual data
|
||||||
|
|
Loading…
Reference in New Issue