mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 01:52:02 -04:00
Add the exception's class name when printing validation exceptions
This commit is contained in:
parent
ef3eae0da5
commit
d952d63ee9
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ catch(Exceptions\ValidationException $validationException){
|
||||||
print("\nValidationExceptions when updating the ebook database:\n");
|
print("\nValidationExceptions when updating the ebook database:\n");
|
||||||
|
|
||||||
foreach($exceptions as $ex){
|
foreach($exceptions as $ex){
|
||||||
print("\t" . $ex->getMessage() . "\n");
|
print("\t" . get_class($ex) . ": " . $ex->getMessage() . "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
print("[ERROR] Found " . count($exceptions) . " errors\n");
|
print("[ERROR] Found " . count($exceptions) . " errors\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue