Merge pull request #2711 from bonifaido/handle-tlspath-error

Redefine the err variable in NewChartRepository, otherwise errors migh slip through
pull/2785/head
Taylor Thomas 7 years ago committed by GitHub
commit 8cf72adf52

@ -60,7 +60,7 @@ func NewChartRepository(cfg *Entry, getters getter.Providers) (*ChartRepository,
if err != nil {
return nil, fmt.Errorf("Could not find protocol handler for: %s", u.Scheme)
}
client, _ := getterConstructor(cfg.URL, cfg.CertFile, cfg.KeyFile, cfg.CAFile)
client, err := getterConstructor(cfg.URL, cfg.CertFile, cfg.KeyFile, cfg.CAFile)
if err != nil {
return nil, fmt.Errorf("Could not construct protocol handler for: %s", u.Scheme)
}

Loading…
Cancel
Save