未验证 提交 94aa588d 编写于 作者: O openharmony_ci 提交者: Gitee

!19044 zlib增加错误码

Merge pull request !19044 from wangtiantian/zlib
......@@ -248,6 +248,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn
| -------- | --------------------------------------|
| 900001 | The input source file is invalid. |
| 900002 | The input destination file is invalid. |
| 900003 | The input source file is not ZIP format or damaged. |
**示例**
......@@ -298,6 +299,7 @@ decompressFile(inFile: string, outFile: string, options: Options): Promise\<void
| ------ | ------------------------------------- |
| 900001 | The input source file is invalid. |
| 900002 | The input destination file is invalid. |
| 900003 | The input source file is not ZIP format or damaged. |
```typescript
// 【解压缩 例子2】
......
......@@ -41,4 +41,25 @@ The input destination file is invalid.
**处理步骤**
1. 检查目标文件路径是否正确,如果不正确,填写正确的沙箱路径。
2. 检查目标文件目录是否存在,如果不存在,新建这个路径。
\ No newline at end of file
2. 检查目标文件目录是否存在,如果不存在,新建这个路径。
## 900003 传入的源文件格式错误或者已损坏
**错误信息**
The input source file is not ZIP format or damaged.
**错误描述**
当调用decompressFile接口时,传入源文件的压缩格式有误或者已损坏。
**可能原因**
1. 当调用decompressFile接口时,传入的源文件压缩格式有误。
2. 当调用decompressFile接口时,传入的源文件不完整或已损坏。
**处理步骤**
1. 检查源文件压缩格斯是否为ZIP格式。
2. 检查源文件是否完整,如果是网络下载的,需要确保文件下载完成后再调用decompress接口。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册