Skip to content

Commit

Permalink
log: print code 235 reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Mar 18, 2023
1 parent ddfe24f commit 588728a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gocq/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 588728a

Please sign in to comment.