From cb029f4c1f58850787981eefaf9d9bf547c1a722 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Thu, 4 Sep 2014 13:33:06 -0700 Subject: [PATCH] Fix error message prefix. --- oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index a98a0a6..dd3a7f8 100644 --- a/oauth2.go +++ b/oauth2.go @@ -172,7 +172,7 @@ func (c *Config) NewTransportWithCode(code string) (*Transport, error) { // contain a refresh token, it returns an error. func (c *Config) FetchToken(existing *Token) (*Token, error) { if existing == nil || existing.RefreshToken == "" { - return nil, errors.New("auth2: cannot fetch access token without refresh token") + return nil, errors.New("oauth2: cannot fetch access token without refresh token") } return c.retrieveToken(url.Values{ "grant_type": {"refresh_token"},