Reverted exception handling to old behavior (issue: #660)

This commit is contained in:
sessingo
2023-04-24 20:03:15 +02:00
parent 4778a8f29e
commit a49d7c13b6

View File

@@ -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()));
}