Merge pull request #710 from technosophos/fix/helm-repo-list-error

fix(helm): change helm repo list to return error when empty
This commit is contained in:
Matt Butcher 2016-05-16 13:28:46 -06:00
commit df4dc3e1ee

View file

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