Skip to content

Commit

Permalink
use config.IsNotExist
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Mar 20, 2024
1 parent 59ef76b commit 9799e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/sshagent/sshagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ 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)) {
if config.IsNotExist(err) {
return nil
}
return fmt.Errorf("failed loading config: %v", err)
Expand Down

0 comments on commit 9799e5f

Please sign in to comment.