feat: When values.yaml.gotmpl can't be parsed as YAML, print the YAML. (#703)
This helps a lot when debugging go templates.
This commit is contained in:
parent
ddb5be1b9d
commit
65818cd345
|
|
@ -53,7 +53,7 @@ func (ld *EnvironmentValuesLoader) LoadEnvironmentValues(missingFileHandler *str
|
||||||
}
|
}
|
||||||
m := map[string]interface{}{}
|
m := map[string]interface{}{}
|
||||||
if err := yaml.Unmarshal(bytes, &m); err != nil {
|
if err := yaml.Unmarshal(bytes, &m); err != nil {
|
||||||
return nil, fmt.Errorf("failed to load environment values file \"%s\": %v", f, err)
|
return nil, fmt.Errorf("failed to load environment values file \"%s\": %v\n\nOffending YAML:\n%s", f, err, bytes)
|
||||||
}
|
}
|
||||||
maps = append(maps, m)
|
maps = append(maps, m)
|
||||||
if ld.logger != nil {
|
if ld.logger != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue