We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d82a95 commit a461603Copy full SHA for a461603
config/config.go
@@ -13,7 +13,7 @@ import (
13
"k8s.io/client-go/tools/clientcmd/api"
14
)
15
16
-var ErrNoServerSelected = errors.New("no server selected")
+var ErrNoConfigurationFound = errors.New("no configuration found, run `login`")
17
18
// Config holds the main config for the user
19
type Config struct {
@@ -106,7 +106,7 @@ func (c Config) Write() error {
106
func (c Config) FocusedServer() (*ServerConfig, error) {
107
currentServer, found := c.Servers[c.CurrentServer]
108
if !found || currentServer == nil {
109
- return nil, ErrNoServerSelected
+ return nil, ErrNoConfigurationFound
110
}
111
return currentServer, nil
112
0 commit comments