projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c00a1fc
)
On error, return error message, not nil
author
Scott C Wilson
<scottcwilson@gmail.com>
Mon, 20 Jul 2015 01:02:03 +0000
(21:02 -0400)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Mon, 20 Jul 2015 12:49:21 +0000
(14:49 +0200)
tpl/template.go
patch
|
blob
|
history
diff --git
a/tpl/template.go
b/tpl/template.go
index 357a9fbd2a0aed6df17188c65ceda67bc5f18fa6..97a04344166632474961c7e6f132bf37821f58aa 100644
(file)
--- 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 {