From e6d5a2e79c6ec9937ef9d90deaaae3e67af3c6cb Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 26 Jun 2019 14:07:51 -0400 Subject: [PATCH] Tweak "too many login reqs" error message This explains what happened, instead of telling the user what to do. --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index e66f0bb..3cf4249 100644 --- a/auth.go +++ b/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) }