refactor: show quick login error
This commit is contained in:
1 parent
b0cda66b4f
commit
cca8397067
1 file changed
+3
-1
+3
-1
@@ -56,7 +56,9 @@ const quickLoginQQ = cmdOptions.qq;
|
|||||||
if (quickLoginQQ) {
|
if (quickLoginQQ) {
|
||||||
log('正在快速登录 ', quickLoginQQ);
|
log('正在快速登录 ', quickLoginQQ);
|
||||||
napCatCore.quickLogin(quickLoginQQ).then(res=>{
|
napCatCore.quickLogin(quickLoginQQ).then(res=>{
|
||||||
logDebug('快速登录结果:', res);
|
if (res.loginErrorInfo.errMsg){
|
||||||
|
logError('快速登录错误:', res.loginErrorInfo.errMsg);
|
||||||
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
napCatCore.qrLogin().then(showQRCode);
|
napCatCore.qrLogin().then(showQRCode);
|
||||||
|
|||||||
Reference in new issue
Block a user