status: properly state if cluster does not exist
parent
5986083ca0
commit
9fa98a834b
|
@ -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": config.ProfileName})
|
||||
}
|
||||
exit.WithError("getting config", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue