소스 검색

Tweak "too many login reqs" error message

This explains what happened, instead of telling the user what to do.
tags/v2.0.2^0
Matt Baer 4 년 전
부모
커밋
e6d5a2e79c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      auth.go

+ 1
- 1
auth.go 파일 보기

@@ -36,7 +36,7 @@ func (c *Client) LogIn(username, pass string) (*AuthUser, error) {
} else if status == http.StatusNotFound {
return nil, fmt.Errorf("User does not exist.")
} else if status == http.StatusTooManyRequests {
return nil, fmt.Errorf("Stop repeatedly trying to log in.")
return nil, fmt.Errorf("Too many log in attempts in a short period of time.")
}
return nil, fmt.Errorf("Problem authenticating: %d. %v\n", status, err)
}


불러오는 중...
취소
저장