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

Signed-off-by: Alex Gladkikh <theshamuel@gmail.com>
release-2.13
Alex 6 years ago committed by Matt Farina
parent e0e5197f8d
commit ccf1d7bc4b
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -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