From a2e53aa19f5f09ce34722cca30c1ecb570624027 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 01:50:13 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index 3a00f65f..6eef5632 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -42,6 +42,7 @@ class OnRequest extends Callback } return \router()->dispatch(); } catch (ExitException | Error | \Throwable $exception) { + $this->addError($exception); if ($exception instanceof ExitException) { return \send($exception->getMessage(), $exception->getCode()); }