From ea1e7f03cf86108a07bca5e493d38cc8b08d7acc Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Mon, 9 Sep 2024 18:24:49 +0200 Subject: [PATCH] revert error message (#390) (#392) --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index d3d98a83..c6200d7c 100644 --- a/config/config.go +++ b/config/config.go @@ -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 { @@ -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 }