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)
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

Loading…
Cancel
Save