mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Fix mistake when printing a single exception
This commit is contained in:
parent
d952d63ee9
commit
66021f8d00
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ catch(Exceptions\ValidationException $validationException){
|
|||
$exceptions = $validationException->Exceptions;
|
||||
if(count($exceptions) == 1){
|
||||
print("\nA ValidationException occurred when updating the ebook database:\n");
|
||||
print($ex->getMessage() . "\n");
|
||||
print("\t" . get_class($exceptions[0]) . ": " . $exceptions[0]->getMessage() . "\n");
|
||||
print("[ERROR] Found 1 error\n");
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue