Fix mistake when printing a single exception

This commit is contained in:
Mike Colagrosso 2024-10-05 12:06:09 -06:00 committed by Alex Cabal
parent d952d63ee9
commit 66021f8d00

View file

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