Commit 6f9aa1b8 authored by Matt Butcher's avatar Matt Butcher

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

Following other commands, an empty list should return an error.
parent 5e1ef0ce
......@@ -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
......
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