From a49d7c13b62cf342f8de5c920b28b43535a39640 Mon Sep 17 00:00:00 2001 From: sessingo Date: Mon, 24 Apr 2023 20:03:15 +0200 Subject: [PATCH] Reverted exception handling to old behavior (issue: #660) --- src/Pecee/SimpleRouter/Router.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Pecee/SimpleRouter/Router.php b/src/Pecee/SimpleRouter/Router.php index cbfbfef..dbabbd9 100644 --- a/src/Pecee/SimpleRouter/Router.php +++ b/src/Pecee/SimpleRouter/Router.php @@ -443,11 +443,7 @@ class Router } } - } catch (\Throwable $e) { - if ($e instanceof Exception) { - return $this->handleException($e); - } - + } catch (Exception $e) { return $this->handleException(new Exception($e->getMessage(), $e->getCode())); }