Skip to content

Commit

Permalink
fixing empty previous
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot authored Feb 22, 2024
1 parent efa777e commit 4ab8e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function handleException(\Throwable $exception, WebRequest $request):
{
// Twig is _so_ annoying that it wraps actual exceptions. So we need to unpack any
// twig exceptions and recursively interact with the actual/previous exception.
if ($exception instanceof RuntimeError) {
if ($exception instanceof RuntimeError && $exception->getPrevious()) {
return $this->handleException($exception->getPrevious(), $request);
}

Expand Down

0 comments on commit 4ab8e97

Please sign in to comment.