mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 16:47:50 -04:00
Revert "Quick-and-dirty way to print details of template errors"
This reverts commit 42b33102cf619e08c6b6a49a50a0995e8f14773f.
This commit is contained in:
parent
6db6d33bec
commit
020c0b863f
@ -1154,7 +1154,6 @@ func (t *GoHtmlTemplate) AddInternalShortcode(name, content string) error {
|
|||||||
func (t *GoHtmlTemplate) AddTemplate(name, tpl string) error {
|
func (t *GoHtmlTemplate) AddTemplate(name, tpl string) error {
|
||||||
_, err := t.New(name).Parse(tpl)
|
_, err := t.New(name).Parse(tpl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
jww.ERROR.Println(err)
|
|
||||||
t.errors = append(t.errors, &templateErr{name: name, err: err})
|
t.errors = append(t.errors, &templateErr{name: name, err: err})
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user