1
0
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:
Mrs4s 2023-03-18 13:47:39 +08:00
parent ddfe24f6db
commit 588728aa62
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -216,6 +216,9 @@ func loginResponseProcessor(res *client.LoginResponse) error {
case client.OtherLoginError, client.UnknownLoginError, client.TooManySMSRequestError: case client.OtherLoginError, client.UnknownLoginError, client.TooManySMSRequestError:
msg := res.ErrorMessage msg := res.ErrorMessage
log.Warnf("登录失败: %v Code: %v", msg, res.Code) log.Warnf("登录失败: %v Code: %v", msg, res.Code)
if res.Code == 235 {
log.Warnf("请删除 device.json 后重试.")
}
log.Infof("按 Enter 继续....") log.Infof("按 Enter 继续....")
readLine() readLine()
os.Exit(0) os.Exit(0)