mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
feat: server restart 子命令加五臂打印定稿与错误消息打磨
This commit is contained in:
@@ -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}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user