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
+1 -5
View File
@@ -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()));
} }