Skip to content

Commit

Permalink
suppress error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tarishij17 committed Dec 2, 2023
1 parent ec8a4c0 commit 59ef76b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/sshagent/sshagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func isRunning(cc *config.ClusterConfig) (bool, error) {
func Stop(profile string) error {
cc, err := config.Load(profile)
if err != nil {
if strings.Contains(fmt.Sprint(err), fmt.Sprintf("cluster %q does not exist", profile)) {
return nil
}
return fmt.Errorf("failed loading config: %v", err)
}
running, err := isRunning(cc)
Expand Down

0 comments on commit 59ef76b

Please sign in to comment.