mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
1 parent
8ddd95e361
commit
eb00c621e0
1 file changed
+2
-1
+2
-1
@@ -127,7 +127,8 @@ func executeTemplate(context interface{}, w io.Writer, layouts ...string) {
|
|||||||
|
|
||||||
if templ != nil {
|
if templ != nil {
|
||||||
if err := templ.Execute(w, context); err != nil {
|
if err := templ.Execute(w, context); err != nil {
|
||||||
jww.ERROR.Println(err, "in", layout)
|
// Printing the err is spammy, see https://github.com/golang/go/issues/17414
|
||||||
|
helpers.DistinctErrorLog.Println(layout, "is an incomplete or empty template")
|
||||||
}
|
}
|
||||||
worked = true
|
worked = true
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user