From 719c3bdb308a93e02fa21472e98ed388a5aa4abf Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Thu, 24 Mar 2016 15:35:27 -0600 Subject: [PATCH] fix(cli): improve errors for kubectl failures --- cmd/helm/server.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/helm/server.go b/cmd/helm/server.go index cbb894d27..21e948d92 100644 --- a/cmd/helm/server.go +++ b/cmd/helm/server.go @@ -124,11 +124,9 @@ func installServer(c *cli.Context) error { out, err := i.Install(runner) if err != nil { - return err - } - if debug { - format.Msg(out) + return fmt.Errorf("error installing %s %s", string(out), err) } + format.Msg(out) return nil } @@ -138,7 +136,7 @@ func uninstallServer(c *cli.Context) error { out, err := client.Uninstall(runner) if err != nil { - format.Err("Error uninstalling: %s %s", out, err) + return fmt.Errorf("error uninstalling: %s %s", out, err) } format.Msg(out) return nil