Fix Module\Photo exit with error
This commit is contained in:
parent
fdc6608af8
commit
a46cbfca3d
|
@ -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"]}."]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue