(cherry picked from commit 310d3ebe3d)
Co-authored-by: David Parrott <stomp.box.yo@gmail.com>
This commit is contained in:
co-authored by
David Parrott
parent
1d5ca3ae77
commit
d6135f54a9
@@ -123,7 +123,7 @@ func expandTemplate(name, text string, data map[string]string) (result string, r
|
||||
}
|
||||
}()
|
||||
|
||||
tmpl, err := text_template.New(name).Option("missingkey=zero").Parse(text)
|
||||
tmpl, err := text_template.New(name).Option("missingkey=error").Parse(text)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error parsing template %v: %s", name, err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user