Skip to content

Commit a49d7c1

Browse files
committed
Reverted exception handling to old behavior (issue: #660)
1 parent 4778a8f commit a49d7c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Pecee/SimpleRouter/Router.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,7 @@ public function routeRequest(): ?string
443443
}
444444
}
445445

446-
} catch (\Throwable $e) {
447-
if ($e instanceof Exception) {
448-
return $this->handleException($e);
449-
}
450-
446+
} catch (Exception $e) {
451447
return $this->handleException(new Exception($e->getMessage(), $e->getCode()));
452448
}
453449

0 commit comments

Comments
 (0)