update error message

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
pull/7114/head
zwwhdls 6 years ago
parent a6bd2c7040
commit a5d483a509

@ -100,7 +100,7 @@ func (e Engine) initFunMap(t *template.Template, referenceTpls map[string]render
var buf strings.Builder
for _, n := range includedNames {
if n == name {
return "", errors.Wrapf(fmt.Errorf("unable to excute template"), "rendering template in a loop, name: %s", name)
return "", errors.Wrapf(fmt.Errorf("unable to excute template"), "rendering template has a nested reference name: %s", name)
}
}
includedNames = append(includedNames, name)

Loading…
Cancel
Save