From a46cbfca3dfda12d4576b752382dc1d19c06c94f Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Sat, 8 Dec 2018 18:49:47 +0100 Subject: [PATCH] Fix Module\Photo exit with error --- src/Module/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Photo.php b/src/Module/Photo.php index b20c2657a5..3cf500719f 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -84,7 +84,7 @@ class Photo extends BaseModule if (is_null($img) || !$img->isValid()) { Logger::log("Invalid photo with id {$photo["id"]}."); - System::httpExit(500, "Internal Server Error"); + System::httpExit(500, ["description" => "Invalid photo with id {$photo["id"]}."]); } -- 2.39.5