Browse Source

Bugfix to previous bugfix

master
Jan Pavlíček 8 months ago
parent
commit
63daccc66e
  1. 2
      lib/NetteUtils/Rest/HttpServicePresenter.php

2
lib/NetteUtils/Rest/HttpServicePresenter.php

@ -92,7 +92,7 @@ abstract class HttpServicePresenter extends Presenter
protected function sendExceptionErrorResponse(Throwable $exception, $code = IResponse::S500_INTERNAL_SERVER_ERROR)
{
$this->response->setCode(IResponse::S500_INTERNAL_SERVER_ERROR);
$this->response->setCode($code);
$this->sendResponse(new JsonResponse(['fault' => [
'faultcode' => $code,
'faultstring' => $exception->getMessage(),

Loading…
Cancel
Save