Skip to content

Commit

Permalink
revert error message (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
enrichman authored Sep 9, 2024
1 parent eca4a72 commit 2250640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"k8s.io/client-go/tools/clientcmd/api"
)

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

// Config holds the main config for the user
type Config struct {
Expand Down Expand Up @@ -106,7 +106,7 @@ func (c Config) Write() error {
func (c Config) FocusedServer() (*ServerConfig, error) {
currentServer, found := c.Servers[c.CurrentServer]
if !found || currentServer == nil {
return nil, ErrNoServerSelected
return nil, ErrNoConfigurationFound
}
return currentServer, nil
}
Expand Down

0 comments on commit 2250640

Please sign in to comment.