[HttpKernel] Wrapping the end of handleException() in a try-catch to prevent response listeners from throwing another exception
This commit is contained in:
parent
54655104ca
commit
083b25b68c
@ -171,7 +171,11 @@ class HttpKernel implements HttpKernelInterface
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return $this->filterResponse($event->getResponse(), $request, $type);
|
||||
try {
|
||||
return $this->filterResponse($event->getResponse(), $request, $type);
|
||||
} catch (\Exception $e) {
|
||||
return $event->getResponse();
|
||||
}
|
||||
}
|
||||
|
||||
private function varToString($var)
|
||||
|
Reference in New Issue
Block a user