Specific schema validation failure messages (fixes issue #1616)
parent
35e0054e8a
commit
0ba335730e
|
@ -144,7 +144,12 @@ class Application extends BaseApplication
|
|||
$this->io->write($e->getMessage());
|
||||
exit(1);
|
||||
}
|
||||
} catch (JsonValidationException $e) {
|
||||
$errors = ' - ' . implode(PHP_EOL . ' - ', $e->getErrors());
|
||||
$message = $e->getMessage() . ':' . PHP_EOL . $errors;
|
||||
throw new JsonValidationException($message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $this->composer;
|
||||
|
|
Loading…
Reference in New Issue