summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2021-12-15 02:34:00 +0100
committerChristian Muehlhaeuser <muesli@gmail.com>2021-12-15 02:34:00 +0100
commit6a1aa7b6da466b8940ebf2d2bf72fe4b47dbb029 (patch)
treea05192f5c1fdd8a30b4e3a39353d86c119d54a79
parent3503f27a1f1c4af4a3d038282a051a0b4cf0edbc (diff)
Improve error message when we can't find a tokenv0.4.0
-rw-r--r--git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.go b/git.go
index 95647f0..ab5094e 100644
--- a/git.go
+++ b/git.go
@@ -61,7 +61,7 @@ func tokenForHost(host string) string {
func guessClient(host string) (Client, error) {
token := tokenForHost(host)
if len(token) == 0 {
- return nil, fmt.Errorf("please set a GITTY_TOKENS env var")
+ return nil, fmt.Errorf("please set a GITTY_TOKENS env var for host " + host)
}
if strings.EqualFold(host, "github.com") {