From: Florian Forster Date: Wed, 31 Jan 2018 07:03:49 +0000 (+0100) Subject: Package app: Improve error message. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e6dd37c95e5524e9e6136c14d7c1b577a971cd04;p=kraftakt.git Package app: Improve error message. --- 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)