From 625162674dbd6a32e86fb7fe1f91fafb4615d91b Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 18 Oct 2023 08:33:00 -0700 Subject: tpl/tplimpl: Fix dropped error --- tpl/tplimpl/template.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tpl') 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 } -- cgit v1.2.3