Skip to content

Commit e1c522f

Browse files
committed
Add exception message to response, but not trace
1 parent 45a3a37 commit e1c522f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/GraphController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function createResponse(Request $request, ?string $schemaName, bool $bat
7272
if ($this->debugMode) {
7373
throw $e;
7474
} else {
75-
return new JsonResponse('', 400);
75+
return new JsonResponse($e->getMessage(), 400);
7676
}
7777
}
7878

0 commit comments

Comments
 (0)