From 5bc6370af2073fec6a5a59cf60749e94a38c57dc Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 22 Jun 2017 15:54:14 +0200 Subject: fix main: Correctly print kubectl errors --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0991257672..0d809071ab 100644 --- a/main.go +++ b/main.go @@ -180,6 +180,6 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource } func failWithKubectlError(err error) { - fmt.Errorf("Kubectl error: %v\n", err) + fmt.Fprintf(os.Stderr, "Kubectl error: %v\n", err) os.Exit(1) } -- cgit 1.4.1