about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.go3
1 files changed, 1 insertions, 2 deletions
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)
 }