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 }