aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorLars Lehtonen <[email protected]>2023-10-18 08:33:00 -0700
committerGitHub <[email protected]>2023-10-18 17:33:00 +0200
commit625162674dbd6a32e86fb7fe1f91fafb4615d91b (patch)
tree59630b56fa6fd2984615da80e62bf8197d8e746c /tpl
parenta692278bc679af44f69cc49c11efc412edd979a0 (diff)
downloadhugo-625162674dbd6a32e86fb7fe1f91fafb4615d91b.tar.gz
hugo-625162674dbd6a32e86fb7fe1f91fafb4615d91b.zip
tpl/tplimpl: Fix dropped error
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index ba5e861af..96b985cec 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -758,6 +758,9 @@ var embeddedTemplatesFs embed.FS
func (t *templateHandler) loadEmbedded() error {
return fs.WalkDir(embeddedTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
+ if err != nil {
+ return err
+ }
if d == nil || d.IsDir() {
return nil
}