summaryrefslogtreecommitdiffstats
path: root/tpl/template.go
diff options
context:
space:
mode:
authorScott C Wilson <scottcwilson@gmail.com>2015-07-19 21:02:03 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-07-20 14:49:21 +0200
commit8a48412c44012e66628f1ca54ebade0321d556a7 (patch)
treed33368615155f8d771bdffaad0091184e959daa3 /tpl/template.go
parentc00a1fcb7fc6a063725229c267a63b35dbf48d1a (diff)
On error, return error message, not nil
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go2
1 files changed, 1 insertions, 1 deletions
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 {