feat: server restart 子命令加五臂打印定稿与错误消息打磨

This commit is contained in:
2026-10-06 17:51:05 +00:00
parent d5a699876a
commit 7eab58a133
5 changed files with 196 additions and 37 deletions
+4 -2
View File
@@ -36,8 +36,10 @@ impl std::fmt::Display for ClientError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ClientError::Connect(msg) => write!(f, "{msg}"),
ClientError::Protocol(err) => write!(f, "响应帧畸形:{err}"),
ClientError::Server(msg) => write!(f, "server 以错误帧答复:{msg}"),
ClientError::Protocol(err) => {
write!(f, "响应帧畸形:{err},server 版本可能不匹配,可用 `oxide server restart` 更新")
}
ClientError::Server(msg) => write!(f, "server 拒绝请求:{msg}"),
}
}
}