projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac25c97
)
Package app: Improve error message.
author
Florian Forster
<ff@octo.it>
Wed, 31 Jan 2018 07:03:49 +0000
(08:03 +0100)
committer
Florian Forster
<ff@octo.it>
Wed, 31 Jan 2018 07:03:49 +0000
(08:03 +0100)
app/user.go
patch
|
blob
|
history
diff --git
a/app/user.go
b/app/user.go
index
3f5b97e
..
563f449
100644
(file)
--- 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)