Skip to content

Commit 4e80366

Browse files
committed
Fixed Router exception for debug mode
1 parent 61ee517 commit 4e80366

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/Router.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ public function run(): void
321321
}
322322
} catch (Exception $e) {
323323
if ($this->debug) {
324-
http_response_code(Response::HTTP_INTERNAL_SERVER_ERROR);
325-
die("Fatal error: Uncaught {$e}");
324+
throw $e;
326325
}
327326
$this->response()->setStatusCode(Response::HTTP_INTERNAL_SERVER_ERROR);
328327
$this->routerCommand()->sendResponse(

0 commit comments

Comments
 (0)