This commit is contained in:
2023-04-18 23:47:30 +08:00
parent f220892b4a
commit c432e629a6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class Server implements OnRequestInterface
$PsrResponse = (new HttpRequestHandler($middleware, $dispatcher))->handle($PsrRequest);
} catch (\Throwable $throwable) {
\Kiri::getLogger()->error($throwable->getMessage(), [$throwable]);
error($throwable);
$PsrResponse = $this->exception->emit($throwable, di(ConstrictResponse::class));
} finally {
$this->emitter->sender($PsrResponse, $response);