fix: helm display confused error message if version is empty (without quotes) (#5310)

Signed-off-by: Alex Gladkikh <theshamuel@gmail.com>
pull/5318/head
Alex 6 years ago committed by Matthew Fisher
parent c99a3c676a
commit 9f964c11da

@ -213,7 +213,7 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, ge
cv, err := i.Get(chartName, version)
if err != nil {
return u, r.Client, fmt.Errorf("chart %q matching %s not found in %s index. (try 'helm repo update'). %s", chartName, version, r.Config.Name, err)
return u, r.Client, fmt.Errorf("chart %q matching %q not found in %s index. (try 'helm repo update'). %s", chartName, version, r.Config.Name, err)
}
if len(cv.URLs) == 0 {

Loading…
Cancel
Save