fix(helm): change helm repo list to return error when empty

Following other commands, an empty list should return an error.
pull/710/head
Matt Butcher 9 years ago
parent 5e1ef0ce86
commit 6f9aa1b888

@ -65,8 +65,7 @@ func runRepoList(cmd *cobra.Command, args []string) error {
return err return err
} }
if len(f.Repositories) == 0 { if len(f.Repositories) == 0 {
fmt.Println("No repositories to show") return errors.New("no repositories to show")
return nil
} }
table := uitable.New() table := uitable.New()
table.MaxColWidth = 50 table.MaxColWidth = 50

Loading…
Cancel
Save