]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
tpl/tplimpl: Fix dropped error
authorLars Lehtonen <lars.lehtonen@gmail.com>
Wed, 18 Oct 2023 15:33:00 +0000 (08:33 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 15:33:00 +0000 (17:33 +0200)
tpl/tplimpl/template.go

index ba5e861aff148d71aa18d82e01cd4eb357bbb62a..96b985cec1b33049a6ee07b60417b788cffc03b3 100644 (file)
@@ -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
                }