Merge pull request #711 from technosophos/fix/helm-update-error

fix(helm): print err if no repositories to update
pull/714/head
Matt Butcher 9 years ago
commit 37981e9cf2

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

Loading…
Cancel
Save