Merge pull request #662 from skipperbent/v5-release

V5 release
This commit is contained in:
Simon Sessingø
2023-04-24 20:08:29 +02:00
committed by GitHub
+2 -6
View File
@@ -443,12 +443,8 @@ class Router
} }
} }
} catch (\Throwable $e) { } catch (Exception $e) {
if ($e instanceof Exception) { return $this->handleException($e);
return $this->handleException($e);
}
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
} }
if ($methodNotAllowed === true) { if ($methodNotAllowed === true) {