Add missing template error logging

This commit is contained in:
Bjørn Erik Pedersen
2016-10-25 22:56:44 +02:00
parent 89e3125664
commit 0406be3d54
3 changed files with 3 additions and 8 deletions

View File

@@ -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