From 263488fdb489bc956bf4c527fa9cea58518c9eec Mon Sep 17 00:00:00 2001 From: Bastian Date: Tue, 26 Jul 2016 17:18:16 +0200 Subject: [PATCH] TASK: Add "_exceptionCode" to result errors --- Classes/View/GraphQlView.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/View/GraphQlView.php b/Classes/View/GraphQlView.php index 04d8ab2..1607b55 100644 --- a/Classes/View/GraphQlView.php +++ b/Classes/View/GraphQlView.php @@ -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(); }