Skip to content

Commit

Permalink
revert error message (#390) (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
enrichman authored Sep 9, 2024
1 parent 95f73b5 commit ea1e7f0
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 ea1e7f0

Please sign in to comment.