Fix Module\Photo exit with error
This commit is contained in:
parent
fdc6608af8
commit
a46cbfca3d
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Photo extends BaseModule
|
||||||
|
|
||||||
if (is_null($img) || !$img->isValid()) {
|
if (is_null($img) || !$img->isValid()) {
|
||||||
Logger::log("Invalid photo with id {$photo["id"]}.");
|
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