Skip to content

Commit 0fcd8cc

Browse files
committed
added handling of the PageNotFoundException
1 parent b6e73ba commit 0fcd8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mouf/Mvc/Splash/Routers/SplashDefaultRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function __invoke(ServerRequestInterface $request, ResponseInterface $res
198198
if ($this->http404Handler !== null) {
199199
return $this->http404Handler->pageNotFound($request);
200200
} else {
201-
throw $e;
201+
return $out($request);
202202
}
203203
} catch (\Throwable $t) {
204204
if ($this->http500Handler !== null) {

0 commit comments

Comments
 (0)