diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2021-12-15 02:34:00 +0100 |
---|---|---|
committer | Christian Muehlhaeuser <muesli@gmail.com> | 2021-12-15 02:34:00 +0100 |
commit | 6a1aa7b6da466b8940ebf2d2bf72fe4b47dbb029 (patch) | |
tree | a05192f5c1fdd8a30b4e3a39353d86c119d54a79 | |
parent | 3503f27a1f1c4af4a3d038282a051a0b4cf0edbc (diff) |
Improve error message when we can't find a tokenv0.4.0
-rw-r--r-- | git.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") { |