提交 4a21b83d 编写于 作者: A Annie_wang

update docs

Signed-off-by: NAnnie_wang <annie.wangli@huawei.com>
上级 05cd3ae9
......@@ -1288,7 +1288,7 @@ try {
console.info(`query is ${query.getSqlLike()}`);
query = null;
} catch (e) {
console.error(`duplicated calls should be ok.ode is ${e.code},message is ${e.message}`);
console.error(`duplicated calls should be ok.code is ${e.code},message is ${e.message}`);
}
```
......@@ -3867,7 +3867,7 @@ For details about the error codes, see [Distributed KV Store Error Codes](../err
```js
let file = "BK001";
try {
kvStore.backup(file, function(err) => {
kvStore.backup(file, (err) => {
if (err) {
console.error(`Failed to backup.code is ${err.code},message is ${err.message} `);
} else {
......@@ -4262,7 +4262,7 @@ try {
console.error(`Failed to commit.code is ${err.code},message is ${err.message}`);
});
} catch (e) {
console.error(`An unexpected error occurred.ode is ${e.code},message is ${e.message}`);
console.error(`An unexpected error occurred.code is ${e.code},message is ${e.message}`);
}
```
......@@ -6637,7 +6637,6 @@ try {
return;
}
console.info('Succeeded in getting resultSize');
;
});
});
} catch (e) {
......@@ -6704,7 +6703,6 @@ try {
query.prefixKey("batch_test");
kvStore.getResultSize('localDeviceId', query).then((resultSize) => {
console.info('Succeeded in getting resultSize');
;
}).catch((err) => {
console.error(`Failed to get resultSize.code is ${err.code},message is ${err.message}`);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册