mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 13:42:14 +00:00
Reverted exception handling to old behavior (issue: #660)
This commit is contained in:
@@ -443,11 +443,7 @@ class Router
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Throwable $e) {
|
} catch (Exception $e) {
|
||||||
if ($e instanceof Exception) {
|
|
||||||
return $this->handleException($e);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
|
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user