1
0
Fork 0

Specific schema validation failure messages (fixes issue #1616)

pull/1617/head
Shane Auckland 2013-02-25 15:34:31 +00:00
parent 35e0054e8a
commit 0ba335730e
1 changed files with 5 additions and 0 deletions

View File

@ -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;