From 66021f8d00c54f7ab066c0ae8edd5251e37d0a5f Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Sat, 5 Oct 2024 12:06:09 -0600 Subject: [PATCH] Fix mistake when printing a single exception --- 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 9724053f..2d752a66 100755 --- a/scripts/update-ebook-database +++ b/scripts/update-ebook-database @@ -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{