diff --git a/cmd/helm/search.go b/cmd/helm/search.go index 061975201..579773413 100644 --- a/cmd/helm/search.go +++ b/cmd/helm/search.go @@ -37,7 +37,7 @@ func search(cmd *cobra.Command, args []string) error { fmt.Println(result) } } else { - cmd.Println("No matches found") + return errors.New("No matches found") } return nil }