We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436ea69 commit f076f6aCopy full SHA for f076f6a
lib/Controller/RemoteController.php
@@ -511,12 +511,13 @@ public function exceptionResponse(
511
return new DataResponse($this->serialize($e), $e->getStatus());
512
}
513
514
+ $errorCode = (int) $e->getCode();
515
return new DataResponse(
516
[
517
'message' => $e->getMessage(),
518
'code' => $e->getCode()
519
],
- ($e->getCode() > 0) ? $e->getCode() : $httpErrorCode
520
+ ($errorCode > 0) ? $errorCode : $httpErrorCode
521
);
522
523
0 commit comments