[ticket/13361] Fix the JsonResponse in the exception listener

PHPBB3-13361
This commit is contained in:
Tristan Darricau 2015-01-14 11:13:28 +01:00
parent 1f4bb2c149
commit 8ef238ea73

View file

@ -94,7 +94,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
$data['trace'] = $exception->getTrace(); $data['trace'] = $exception->getTrace();
} }
$response = new JsonResponse($message, 500); $response = new JsonResponse($data, 500);
} }
if ($exception instanceof HttpExceptionInterface) if ($exception instanceof HttpExceptionInterface)