diff options
author | Lars Lehtonen <[email protected]> | 2023-10-18 08:33:00 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-18 17:33:00 +0200 |
commit | 625162674dbd6a32e86fb7fe1f91fafb4615d91b (patch) | |
tree | 59630b56fa6fd2984615da80e62bf8197d8e746c /tpl | |
parent | a692278bc679af44f69cc49c11efc412edd979a0 (diff) | |
download | hugo-625162674dbd6a32e86fb7fe1f91fafb4615d91b.tar.gz hugo-625162674dbd6a32e86fb7fe1f91fafb4615d91b.zip |
tpl/tplimpl: Fix dropped error
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/template.go | 3 |
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 } |