From 863f70d57d20858867c88665e5ad773679df14fe Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Tue, 3 Oct 2023 16:02:37 -0700 Subject: [PATCH] fix delete if CRI doesn't exist --- cmd/minikube/cmd/delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index eae8e28c056d..a01a4658f0c1 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -407,7 +407,7 @@ func unpauseIfNeeded(profile *config.Profile) error { cr, err := cruntime.New(cruntime.Config{Type: crName, Runner: r}) if err != nil { - exit.Error(reason.InternalNewRuntime, "Failed to create runtime", err) + return err } paused, err := cluster.CheckIfPaused(cr, nil)