Skip to content

Commit 98a6098

Browse files
committed
Adding a hack to display errors
1 parent 17c097b commit 98a6098

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GraphQLMiddleware.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function process(\Psr\Http\Message\ServerRequestInterface $request, \Inte
7272

7373
$processor = new Processor($this->schema);
7474
$processor->processPayload($query, $variables);
75+
// Hack while waiting validation of PR: https://github.com/Youshido/GraphQL/pull/178
76+
if (method_exists($processor->getExecutionContext(), 'setCatchExceptions')) {
77+
$processor->getExecutionContext()->setCatchExceptions(false);
78+
}
7579
$res = $processor->getResponseData();
7680
return new JsonResponse($res);
7781

0 commit comments

Comments
 (0)