diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-05-08T09·26+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-05-08T09·32+0200 |
commit | ea297abe1d841967cc43599e07e7c032653264ee (patch) | |
tree | 59534ce6fbe97325678156f501d0c24fe6f343dc | |
parent | b8c32640196618b697b3c6ca58d416097f87dd3d (diff) |
fix(main): Use 'app.Fatalf' for fatal kubectl errors
-rw-r--r-- | main.go | 3 |
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) } |