We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ef76b commit 9799e5fCopy full SHA for 9799e5f
pkg/minikube/sshagent/sshagent.go
@@ -106,7 +106,7 @@ func isRunning(cc *config.ClusterConfig) (bool, error) {
106
func Stop(profile string) error {
107
cc, err := config.Load(profile)
108
if err != nil {
109
- if strings.Contains(fmt.Sprint(err), fmt.Sprintf("cluster %q does not exist", profile)) {
+ if config.IsNotExist(err) {
110
return nil
111
}
112
return fmt.Errorf("failed loading config: %v", err)
0 commit comments