Skip to content

Commit

Permalink
📃 docs: 更新错误码文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wtklbm committed Sep 4, 2024
1 parent afcefa9 commit e7abbd4
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,26 +185,21 @@ lazy_static = {version = "1.4.0", registry = "sjtu"}
## 错误处理

以下是 crm 异常结束的情况对照表:
- 1:写入的镜像名称有误
- 2:写入的镜像地址有误
- 3:`config.json` 文件的 `dl` 字段值有误
- 4:命令无效
- 5:字段不存在(cargo的配置文件有误)
- 6:配置文件解析失败(格式有误或字段缺失)
- 7:要进行下载测试的镜像不存在
- 8:`REPLACE_WITH` 字段的值缺失
- 9:配置文件格式错误(字段值无法写入不是表的类型中)
- 10:属性名错误
- 11:不能删除内置镜像
- 12:要删除的镜像不存在
- 13:要进行连接测试的镜像不存在
- 14:解析配置文件失败
- 15:字段有误,请参考提示
- 16:文件的条目中缺少字段,请参考提示
- 17:字段有误,请参考提示
- 18:写入文件失败,请检查权限
- 19:传入的参数错误
- 20:配置文件冲突,需手动检查
- 1: 写入的镜像名称有误
- 2: 写入的镜像地址有误
- 3: 写入的 `dl` 字段值有误
- 4: 命令无效
- 5: `config.json` 配置文件解析失败 (格式有误或字段缺失)
- 6: 属性名错误
- 7: 不能删除内置镜像
- 8: 要删除的镜像不存在
- 9: 传入的参数错误
- 10: 要进行下载测试的镜像不存在
- 11: 要进行连接测试的镜像不存在
- 12: `.crmrc` 配置文件解析失败 (格式有误或字段缺失)
- 13: 写入文件失败,请检查权限
- 14: 配置文件冲突,需手动检查




Expand All @@ -217,6 +212,9 @@ lazy_static = {version = "1.4.0", registry = "sjtu"}
- [从 Github 访问](https://github.com/wtklbm/rust-library-i18n)
- [从 Gitee 访问](https://gitee.com/wtklbm/rust-library-chinese)




## LICENSE

MIT OR Apache-2.0
Expand Down

0 comments on commit e7abbd4

Please sign in to comment.