From 87eb45b2841bbd9e367775afc9c911071b932032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 10 Sep 2020 16:02:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index cfe1851c..b7b3ed2a 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -426,7 +426,7 @@ class Router extends Application implements RouterInterface $response = send($node->dispatch(), 200); } } catch (ExitException $exception) { - $response = send($this->exception($exception), $exception->getCode()); + $response = send($exception->getMessage(), $exception->getCode()); } catch (\Throwable $exception) { $response = send($this->exception($exception), 200); } finally {