提交 b75b6106 编写于 作者: Z zuojiangjiang

fix error

Signed-off-by: Nzuojiangjiang <zuojiangjiang@huawei.com>
上级 2649743e
......@@ -2406,9 +2406,9 @@ try {
} else {
console.info("backup data : " + data);
}
});
});
} catch (e) {
console.log("An unexpected error occurred. Error : " + e);
console.log("An unexpected error occurred. Error : " + e);
}
```
......@@ -2439,13 +2439,13 @@ backup(file:string): Promise&lt;void&gt;
let kvStore;
let file = "BK001";
try {
kvStore.backup(file).then((data) => {
kvStore.backup(file).then((data) => {
console.info("backup data : " + data);
}).catch((err) => {
console.info("backup err : " + err);
});
} catch (e) {
console.log("An unexpected error occurred. Error : " + e);
console.log("An unexpected error occurred. Error : " + e);
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册