Bugfix to previous bugfix
This commit is contained in:
@@ -92,7 +92,7 @@ abstract class HttpServicePresenter extends Presenter
|
|||||||
|
|
||||||
protected function sendExceptionErrorResponse(Throwable $exception, $code = IResponse::S500_INTERNAL_SERVER_ERROR)
|
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' => [
|
$this->sendResponse(new JsonResponse(['fault' => [
|
||||||
'faultcode' => $code,
|
'faultcode' => $code,
|
||||||
'faultstring' => $exception->getMessage(),
|
'faultstring' => $exception->getMessage(),
|
||||||
|
|||||||
Reference in New Issue
Block a user