mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-20 02:53:12 +00:00
Show full template error
This commit is contained in:
parent
d6000a208c
commit
db33a33e61
1 changed files with 1 additions and 2 deletions
|
@ -140,8 +140,7 @@ func (t *GoHTMLTemplate) executeTemplate(context interface{}, w io.Writer, layou
|
||||||
|
|
||||||
if templ != nil {
|
if templ != nil {
|
||||||
if err := templ.Execute(w, context); err != nil {
|
if err := templ.Execute(w, context); err != nil {
|
||||||
// Printing the err is spammy, see https://github.com/golang/go/issues/17414
|
helpers.DistinctErrorLog.Println(layout, err)
|
||||||
helpers.DistinctErrorLog.Println(layout, "is an incomplete or empty template")
|
|
||||||
}
|
}
|
||||||
worked = true
|
worked = true
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Reference in a new issue