mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix(helm): change helm repo list to return error when empty
Following other commands, an empty list should return an error.
This commit is contained in:
parent
5e1ef0ce86
commit
6f9aa1b888
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue