Skip to content

Commit

Permalink
TASK: Add "_exceptionCode" to result errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Jul 26, 2016
1 parent 3375756 commit 263488f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/View/GraphQlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private function formatResult(ExecutionResult $executionResult)
$exception = $error->getPrevious();
if ($exception instanceof FlowException) {
$errorResult['message'] = HttpResponse::getStatusMessageByCode($exception->getStatusCode());
$errorResult['_exceptionCode'] = $exception->getCode();
$errorResult['_statusCode'] = $exception->getStatusCode();
$errorResult['_referenceCode'] = $exception->getReferenceCode();
}
Expand Down

0 comments on commit 263488f

Please sign in to comment.