fix(cli): improve errors for kubectl failures

pull/449/head
Matt Butcher 9 years ago
parent 14efdee05d
commit 719c3bdb30

@ -124,11 +124,9 @@ func installServer(c *cli.Context) error {
out, err := i.Install(runner) out, err := i.Install(runner)
if err != nil { if err != nil {
return err return fmt.Errorf("error installing %s %s", string(out), err)
} }
if debug {
format.Msg(out) format.Msg(out)
}
return nil return nil
} }
@ -138,7 +136,7 @@ func uninstallServer(c *cli.Context) error {
out, err := client.Uninstall(runner) out, err := client.Uninstall(runner)
if err != nil { if err != nil {
format.Err("Error uninstalling: %s %s", out, err) return fmt.Errorf("error uninstalling: %s %s", out, err)
} }
format.Msg(out) format.Msg(out)
return nil return nil

Loading…
Cancel
Save