Skip to content

Commit a461603

Browse files
authored
revert error message (#390) (#391)
1 parent 8d82a95 commit a461603

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"k8s.io/client-go/tools/clientcmd/api"
1414
)
1515

16-
var ErrNoServerSelected = errors.New("no server selected")
16+
var ErrNoConfigurationFound = errors.New("no configuration found, run `login`")
1717

1818
// Config holds the main config for the user
1919
type Config struct {
@@ -106,7 +106,7 @@ func (c Config) Write() error {
106106
func (c Config) FocusedServer() (*ServerConfig, error) {
107107
currentServer, found := c.Servers[c.CurrentServer]
108108
if !found || currentServer == nil {
109-
return nil, ErrNoServerSelected
109+
return nil, ErrNoConfigurationFound
110110
}
111111
return currentServer, nil
112112
}

0 commit comments

Comments
 (0)