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
@@ -287,7 +287,7 @@ class Node extends HttpService
return [$reflect->newInstance(), $action];
} catch (Throwable $exception) {
$this->_error = $exception->getMessage();
$this->error($exception, 'router');
$this->addError($exception, 'router');
return null;
}
}
@@ -592,7 +592,7 @@ class Node extends HttpService
}
return $this->runWith(...func_get_args());
} catch (Throwable $throwable) {
$this->error($throwable->getMessage());
$this->addError($throwable->getMessage(),'throwable');
return Json::to(401, $throwable->getMessage());
}
}