Merge pull request #1721 from euank/better-error

fix(chartutil): improve 'missing name' error
pull/1727/head
Adam Reese 8 years ago committed by GitHub
commit 9b0a85c7ef

@ -151,9 +151,12 @@ func loadFiles(files []*afile) (*chart.Chart, error) {
}
// Ensure that we got a Chart.yaml file
if c.Metadata == nil || c.Metadata.Name == "" {
if c.Metadata == nil {
return c, errors.New("chart metadata (Chart.yaml) missing")
}
if c.Metadata.Name == "" {
return c, errors.New("invalid chart (Chart.yaml): name must not be empty")
}
for n, files := range subcharts {
var sc *chart.Chart

Loading…
Cancel
Save