Skip to content

Commit

Permalink
EVEREST-1294: fix error message (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Kralik authored Nov 20, 2024
1 parent a5a874e commit e675e56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commands/accounts/initial_admin_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ func NewInitialAdminPasswdCommand(l *zap.SugaredLogger) *cobra.Command {
k, err := kubernetes.New(kubeconfigPath, l)
if err != nil {
var u *url.Error
if errors.As(err, &u) {
l.Error("Could not connect to Kubernetes. " +
"Make sure Kubernetes is running and is accessible from this computer/server.")
l.Error("Could not connect to Kubernetes. " +
"Make sure Kubernetes is running and is accessible from this computer/server.")
if !errors.As(err, &u) {
l.Error(err)
}
os.Exit(1)
}
Expand Down

0 comments on commit e675e56

Please sign in to comment.