From a08f6e946fe5ab060989ca8e1f5c7f944750ce50 Mon Sep 17 00:00:00 2001 From: alonyb Date: Mon, 11 Jan 2021 21:19:46 -0500 Subject: [PATCH] add spinner stop in err messages --- pkg/minikube/out/out.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/minikube/out/out.go b/pkg/minikube/out/out.go index 50f09600f5..74b7e0821c 100644 --- a/pkg/minikube/out/out.go +++ b/pkg/minikube/out/out.go @@ -180,6 +180,10 @@ func Err(format string, a ...interface{}) { klog.Warningf(format, a...) + // if spin is active from a previous step, it will stop spinner displaying + if spin.Active() { + spin.Stop() + } _, err := fmt.Fprintf(errFile, format, a...) if err != nil { klog.Errorf("Fprint failed: %v", err)