From 5a3d4f2870a8d16f6fbcc3dbc939a94cdbd55a01 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Thu, 26 Mar 2020 17:01:30 -0700 Subject: [PATCH] Fix StartHost error formatting mistake, improve err msg --- pkg/minikube/node/start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/minikube/node/start.go b/pkg/minikube/node/start.go index 5f7b131a6ebc..eede1db480a3 100644 --- a/pkg/minikube/node/start.go +++ b/pkg/minikube/node/start.go @@ -348,7 +348,8 @@ func startHost(api libmachine.API, cc config.ClusterConfig, n config.Node) (*hos out.T(out.Workaround, `Run: "{{.delete}}", then "{{.start}} --alsologtostderr -v=1" to try again with more logging`, out.V{"delete": mustload.ExampleCmd(cc.Name, "delete"), "start": mustload.ExampleCmd(cc.Name, "start")}) - exit.WithError("Unable to start VM after repeated tries. Please try {{'minikube delete' if possible", err) + drv := host.Driver.DriverName() + exit.WithError(fmt.Sprintf(`Failed to start %s %s. "%s" may fix it.`, drv, driver.MachineType(drv), mustload.ExampleCmd(cc.Name, "start")), err) return host, exists }