pkg/minikube: print error messages to stderr
parent
9f7647f4f4
commit
cdffcdf258
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue