Commit 25f74989 authored by Euan Kemp's avatar Euan Kemp Committed by Euan Kemp

fix(chartutil): improve 'missing name' error

parent b3d812b3
...@@ -151,9 +151,12 @@ func loadFiles(files []*afile) (*chart.Chart, error) { ...@@ -151,9 +151,12 @@ func loadFiles(files []*afile) (*chart.Chart, error) {
} }
// Ensure that we got a Chart.yaml file // 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") 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 { for n, files := range subcharts {
var sc *chart.Chart var sc *chart.Chart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment