mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add missing template error logging
This commit is contained in:
@@ -460,7 +460,9 @@ func (t *GoHTMLTemplate) loadTemplates(absPath string, prefix string) {
|
||||
}
|
||||
}
|
||||
|
||||
t.AddTemplateFile(tplName, baseTemplatePath, path)
|
||||
if err := t.AddTemplateFile(tplName, baseTemplatePath, path); err != nil {
|
||||
jww.ERROR.Printf("Failed to add template %s: %s", tplName, err)
|
||||
}
|
||||
|
||||
}
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user