From d952d63ee993e3d4c7e712e31bc54caaade05989 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Sat, 5 Oct 2024 11:59:48 -0600 Subject: [PATCH] Add the exception's class name when printing validation exceptions --- scripts/update-ebook-database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-ebook-database b/scripts/update-ebook-database index cd6f014e..9724053f 100755 --- a/scripts/update-ebook-database +++ b/scripts/update-ebook-database @@ -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");