Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-shrivastava-webkul committed Dec 15, 2021
1 parent 33ab57a commit f57013a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/ExceptionSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function onKernelException(ExceptionEvent $event)
$event->setResponse(new Response($template, 403));
}
} else {
if ($exception instanceof NotFoundHttpException) {
if ($exception instanceof NotFoundHttpException || $exception->getCode() == 404) {
$template = $this->twig->render('errors/error.html.twig', [
'code' => 404,
'message' => 'Page not Found',
Expand Down

0 comments on commit f57013a

Please sign in to comment.