Add the exception's class name when printing validation exceptions

This commit is contained in:
Mike Colagrosso 2024-10-05 11:59:48 -06:00 committed by Alex Cabal
parent ef3eae0da5
commit d952d63ee9

View file

@ -44,7 +44,7 @@ catch(Exceptions\ValidationException $validationException){
print("\nValidationExceptions when updating the ebook database:\n");
foreach($exceptions as $ex){
print("\t" . $ex->getMessage() . "\n");
print("\t" . get_class($ex) . ": " . $ex->getMessage() . "\n");
}
print("[ERROR] Found " . count($exceptions) . " errors\n");