refactor: show quick login error

This commit is contained in:
linyuchen 2024-04-29 11:45:43 +08:00
parent 77e3fc4ab0
commit e83f36a12f

View File

@ -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);