diff --git a/tpl/template.go b/tpl/template.go index 357a9fbd2..97a043441 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -197,7 +197,7 @@ func (t *GoHTMLTemplate) AddTemplateFile(name, baseTemplatePath, path string) er compiler := amber.New() // Parse the input file if err := compiler.ParseFile(path); err != nil { - return nil + return err } if _, err := compiler.CompileWithTemplate(t.New(templateName)); err != nil {