Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-25 23:56:44 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-10-25 23:56:44 +0300
commit0406be3d547749b93dd4fd13e142982915b6ca1f (patch)
treecdad76d2155dfe682f4f3487de344889962380a8 /tpl/template.go
parent89e31256649aeddec945a2d6dc73478f9a1ce0b8 (diff)
Add missing template error logging
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/template.go b/tpl/template.go
index 0f78fa00f..a1568b911 100644
--- a/tpl/template.go
+++ b/tpl/template.go
@@ -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