From 6f9aa1b88892de8fcf5c9895ac9c25b45f96378f Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 16 May 2016 12:44:54 -0600 Subject: [PATCH] fix(helm): change helm repo list to return error when empty Following other commands, an empty list should return an error. --- cmd/helm/repo.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/helm/repo.go b/cmd/helm/repo.go index 0f820334b..40aa43fd4 100644 --- a/cmd/helm/repo.go +++ b/cmd/helm/repo.go @@ -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