From e6dd37c95e5524e9e6136c14d7c1b577a971cd04 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 31 Jan 2018 08:03:49 +0100 Subject: [PATCH] Package app: Improve error message. --- app/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/user.go b/app/user.go index 3f5b97e..563f449 100644 --- a/app/user.go +++ b/app/user.go @@ -103,7 +103,7 @@ func (u *User) OAuthClient(ctx context.Context, svc string, cfg *oauth2.Config) var tok oauth2.Token if err := datastore.Get(ctx, key, &tok); err != nil { - return nil, err + return nil, fmt.Errorf("datastore.Get(%v) = %v", key, err) } src := cfg.TokenSource(ctx, &tok) -- 2.11.0