diff --git a/cmd/minikube/cmd/status.go b/cmd/minikube/cmd/status.go index b8ad90838cc1..6a50514fe64e 100644 --- a/cmd/minikube/cmd/status.go +++ b/cmd/minikube/cmd/status.go @@ -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) }