This commit is contained in:
as2252258@163.com
2021-02-23 01:50:13 +08:00
parent 91ff2bfc90
commit a2e53aa19f
+1
View File
@@ -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());
}