提交 573450dc 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix(contact): return false instead of throw when contact is not friend (#509)

上级 c34bba27
......@@ -142,8 +142,9 @@ export class Bridge {
return await this.proxyWechaty('contactRemarkAsync', contactId, remark)
} catch (e) {
log.verbose('PuppetWebBridge', 'contactRemarkAsync() exception: %s', e.message)
// throw e
// Issue #509 return false instead of throw when contact is not a friend.
// throw e
log.warn('PuppetWebBridge', 'contactRemark() does not work on contact is not a friend')
return false
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册