Skip to content

Commit

Permalink
feat:网络连接似乎有点不稳定。请检查您的网络!
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Mar 23, 2024
1 parent 8ab9b67 commit 9c53e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ protected function solveExtraException(Throwable $e): void
$this->statusCode = $status['route'] ?? 404;
} elseif ($e instanceof \TypeError) {
$this->statusCode = 400;
$this->errorMessage = '参数类型与预期声明的参数类型不匹配';
// 参数类型与预期声明的参数类型不匹配
$this->errorMessage = '网络连接似乎有点不稳定。请检查您的网络!';
$this->error = $e->getMessage();
} elseif ($e instanceof ValidateException) {
$this->statusCode = $status['validate'];
Expand Down

0 comments on commit 9c53e88

Please sign in to comment.