diff --git a/cmd/helm/update.go b/cmd/helm/update.go index f3734f220..4479c19ed 100644 --- a/cmd/helm/update.go +++ b/cmd/helm/update.go @@ -1,6 +1,7 @@ package main import ( + "errors" "fmt" "io" "io/ioutil" @@ -36,6 +37,10 @@ func runUpdate(cmd *cobra.Command, args []string) error { return err } + if len(f.Repositories) == 0 { + return errors.New("no repositories found. You must add one before updating") + } + updateCharts(f.Repositories, verboseUpdate) return nil }