提交 c9a1b831 编写于 作者: G Gloria

Update docs against 19044

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 78c09c04
......@@ -248,6 +248,7 @@ For details about the error codes, see [zlib Error Codes](../errorcodes/errorcod
| -------- | --------------------------------------|
| 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. |
**Example**
......@@ -298,6 +299,7 @@ For details about the error codes, see [zlib Error Codes](../errorcodes/errorcod
| ------ | ------------------------------------- |
| 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
// Decompress a file.
......
......@@ -42,3 +42,24 @@ This error code is reported when the destination file passed in the **compressFi
1. Check whether the destination file path is correct. If not, enter the correct sandbox path.
2. Check whether the destination folder exists. If not, create the folder.
## 900003 Source File in Incorrect Format or Damaged
**Error Message**
The input source file is not ZIP format or damaged.
**Description**
This error code is reported when the format of the source file is incorrect or the source file is damaged when the **decompressFile** API is called.
**Possible Causes**
1. When the **decompressFile** API is called, the format of the source file is incorrect.
2. When the **decompressFile** API is called, the source file is incomplete or damaged.
**Solution**
1. Check whether the source file format is ZIP.
2. Check whether the source file is complete. If the file is downloaded from the network, ensure that the file download is complete before calling the **decompressFile** API.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册