We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d40751f commit bbc679bCopy full SHA for bbc679b
cmd/minikube/cmd/dashboard.go
@@ -72,12 +72,11 @@ var dashboardCmd = &cobra.Command{
72
exit.WithError("Error getting client", err)
73
}
74
75
- _, err = api.Load(pkg_config.GetMachineName())
76
- if err != nil {
+ if _, err = api.Load(pkg_config.GetMachineName()); err != nil {
77
switch err := errors.Cause(err).(type) {
78
case mcnerror.ErrHostDoesNotExist:
79
console.OutStyle(console.Meh, "%q cluster does not exist", pkg_config.GetMachineName())
80
- os.Exit(0)
+ os.Exit(exit.Unavailable)
81
default:
82
exit.WithError("Error getting cluster", err)
83
0 commit comments