This commit is contained in:
2021-03-30 11:56:29 +08:00
parent 4171727784
commit 482f593e3b
21 changed files with 40 additions and 24 deletions
+2 -2
View File
@@ -515,7 +515,7 @@ class Router extends HttpService implements RouterInterface
}
return $node->afterDispatch($response);
} catch (\Throwable $exception) {
$this->addError($exception);
$this->addError($exception,'throwable');
$Code = $exception->getCode() == 0 ? 500 : $exception->getCode();
@@ -659,7 +659,7 @@ class Router extends HttpService implements RouterInterface
$router = $this;
include_once "{$files}";
} catch (\Throwable $exception) {
$this->error($exception);
$this->addError($exception,'throwable');
} finally {
if (isset($exception)) {
unset($exception);