提交 13a3fb23 编写于 作者: C cc_ggboy

account arkts告警清理

Signed-off-by: Ncc_ggboy <chenweimin8@huawei.com>
上级 a347780f
......@@ -90,7 +90,9 @@ activateOsAccount(localId: number, callback: AsyncCallback&lt;void&gt;): void
}
});
} catch (err) {
console.error(`activateOsAccount failed, code is ${err.code}, message is ${err.message}`);
let code = (err as BusinessError).code
let message = (err as BusinessError).message
console.error(`activateOsAccount failed, code is ${code}, message is ${message}`);
}
```
......@@ -178,7 +180,9 @@ checkMultiOsAccountEnabled(callback: AsyncCallback&lt;boolean&gt;): void
}
});
} catch (err) {
console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`);
let code = (err as BusinessError).code
let message = (err as BusinessError).message
console.error(`checkMultiOsAccountEnabled failed, code is ${code}, message is ${message}`);
}
```
......@@ -214,7 +218,9 @@ checkMultiOsAccountEnabled(): Promise&lt;boolean&gt;
console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`);
});
} catch (err) {
console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`);
let code = (err as BusinessError).code
let message = (err as BusinessError).message
console.error(`checkMultiOsAccountEnabled failed, code is ${code}, message is ${message}`);
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册