From: Lars Lehtonen Date: Wed, 18 Oct 2023 15:33:00 +0000 (-0700) Subject: tpl/tplimpl: Fix dropped error X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=625162674dbd6a32e86fb7fe1f91fafb4615d91b;p=brevno-suite%2Fhugo tpl/tplimpl: Fix dropped error --- 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 }