Commit df4dc3e1 authored by Matt Butcher's avatar Matt Butcher

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

fix(helm): change helm repo list to return error when empty
parents 37981e9c 6f9aa1b8
...@@ -65,8 +65,7 @@ func runRepoList(cmd *cobra.Command, args []string) error { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment