Updated exception handling in http service presenter - fixed hardcoded error code

This commit is contained in:
2025-03-27 10:11:52 +01:00
parent 3b164678f5
commit 5d6f856b36
+1 -1
View File
@@ -94,7 +94,7 @@ abstract class HttpServicePresenter extends Presenter
{
$this->response->setCode(IResponse::S500_INTERNAL_SERVER_ERROR);
$this->sendResponse(new JsonResponse(['fault' => [
'faultcode' => 500,
'faultcode' => $code,
'faultstring' => $exception->getMessage(),
'detail' => get_class($exception) . ": " . $exception->getMessage()
]]));