From cdffcdf258147365f072b9a57aadfc55354d94d0 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Thu, 30 Mar 2017 19:11:09 -0700 Subject: [PATCH] pkg/minikube: print error messages to stderr --- pkg/minikube/cluster/cluster.go | 2 +- pkg/minikube/service/service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/minikube/cluster/cluster.go b/pkg/minikube/cluster/cluster.go index ba45da4366..be20a0be55 100644 --- a/pkg/minikube/cluster/cluster.go +++ b/pkg/minikube/cluster/cluster.go @@ -462,7 +462,7 @@ func EnsureMinikubeRunningOrExit(api libmachine.API, exitStatus int) { os.Exit(1) } if s != state.Running.String() { - fmt.Fprintln(os.Stdout, "minikube is not currently running so the service cannot be accessed") + fmt.Fprintln(os.Stderr, "minikube is not currently running so the service cannot be accessed") os.Exit(exitStatus) } } diff --git a/pkg/minikube/service/service.go b/pkg/minikube/service/service.go index 93d3c88c3e..7b99422609 100644 --- a/pkg/minikube/service/service.go +++ b/pkg/minikube/service/service.go @@ -232,7 +232,7 @@ func WaitAndMaybeOpenService(api libmachine.API, namespace string, service strin if urlMode || !strings.HasPrefix(url, "http") { fmt.Fprintln(os.Stdout, url) } else { - fmt.Fprintln(os.Stdout, "Opening kubernetes service "+namespace+"/"+service+" in default browser...") + fmt.Fprintln(os.Stderr, "Opening kubernetes service "+namespace+"/"+service+" in default browser...") browser.OpenURL(url) } }