mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
log: print code 235 reason
This commit is contained in:
parent
ddfe24f6db
commit
588728aa62
@ -216,6 +216,9 @@ func loginResponseProcessor(res *client.LoginResponse) error {
|
||||
case client.OtherLoginError, client.UnknownLoginError, client.TooManySMSRequestError:
|
||||
msg := res.ErrorMessage
|
||||
log.Warnf("登录失败: %v Code: %v", msg, res.Code)
|
||||
if res.Code == 235 {
|
||||
log.Warnf("请删除 device.json 后重试.")
|
||||
}
|
||||
log.Infof("按 Enter 继续....")
|
||||
readLine()
|
||||
os.Exit(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user