Skip to content

Commit

Permalink
Merge pull request #7041 from tstromberg/better-status-msg2
Browse files Browse the repository at this point in the history
status: error properly if cluster does not exist
  • Loading branch information
medyagh authored Mar 14, 2020
2 parents c2f0cf0 + b0e4b32 commit 0638746
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/minikube/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ var statusCmd = &cobra.Command{

cc, err := config.Load(viper.GetString(config.ProfileName))
if err != nil {
if config.IsNotExist(err) {
exit.WithCodeT(exitCode(&Status{}), `The "{{.name}}" cluster does not exist!`, out.V{"name": viper.GetString(config.ProfileName)})
}
exit.WithError("getting config", err)
}

Expand Down

0 comments on commit 0638746

Please sign in to comment.