This commit is contained in:
2025-12-31 00:19:29 +08:00
parent 34051feb87
commit 91e0fe8940
12 changed files with 569 additions and 66 deletions
+1
View File
@@ -87,6 +87,7 @@ class OnRequest implements OnRequestInterface
$PsrResponse = $this->router->query($request->server['path_info'], $request->getMethod())->run($PsrRequest);
} catch (Throwable $throwable) {
\Kiri::getLogger()->json_log($throwable);
$PsrResponse = $this->exception->emit($throwable, $this->constrictResponse);
} finally {
$this->responseEmitter->response($PsrResponse, $response, $PsrRequest);