From ea297abe1d841967cc43599e07e7c032653264ee Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 8 May 2018 11:26:01 +0200 Subject: fix(main): Use 'app.Fatalf' for fatal kubectl errors --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index bd5d4cbaf1e7..b0117876cedd 100644 --- a/main.go +++ b/main.go @@ -234,6 +234,5 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource } func failWithKubectlError(err error) { - fmt.Fprintf(os.Stderr, "Kubectl error: %v\n", err) - os.Exit(1) + app.Fatalf("Kubectl error: %v\n", err) } -- cgit 1.4.1