Fix error handling for the time func alias

Fixes #8835
This commit is contained in:
Bjørn Erik Pedersen
2021-08-01 12:50:37 +02:00
parent 4d221ce468
commit 6c70e1f22f
53 changed files with 122 additions and 65 deletions

View File

@@ -26,7 +26,7 @@ func init() {
ns := &internal.TemplateFuncsNamespace{
Name: name,
Context: func(args ...interface{}) interface{} { return ctx },
Context: func(args ...interface{}) (interface{}, error) { return ctx, nil },
}
ns.AddMethodMapping(ctx.Base64Decode,