about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-05-08T09·26+0200
committerVincent Ambo <github@tazj.in>2018-05-08T09·32+0200
commitea297abe1d841967cc43599e07e7c032653264ee (patch)
tree59534ce6fbe97325678156f501d0c24fe6f343dc /main.go
parentb8c32640196618b697b3c6ca58d416097f87dd3d (diff)
fix(main): Use 'app.Fatalf' for fatal kubectl errors
Diffstat (limited to 'main.go')
-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)
 }