From: Anthony Fok Date: Tue, 20 Jan 2015 09:23:28 +0000 (-0700) Subject: Quick-and-dirty way to print details of template errors X-Git-Tag: v0.13~159 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=42b33102cf619e08c6b6a49a50a0995e8f14773f;p=brevno-suite%2Fhugo Quick-and-dirty way to print details of template errors See Issue #316. --- diff --git a/tpl/template.go b/tpl/template.go index 9574adb9..b448355e 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -1144,6 +1144,7 @@ func (t *GoHtmlTemplate) AddInternalShortcode(name, content string) error { func (t *GoHtmlTemplate) AddTemplate(name, tpl string) error { _, err := t.New(name).Parse(tpl) if err != nil { + jww.ERROR.Println(err) t.errors = append(t.errors, &templateErr{name: name, err: err}) } return err