diff --git a/templates.go b/templates.go index 6e34631..b4012ef 100644 --- a/templates.go +++ b/templates.go @@ -119,7 +119,9 @@ func (t *Templates) Load(dir string, exts []string) error { } if d.Type().IsRegular() { name := strings.TrimPrefix(path, dir) - t.LoadTemplate(name, path) + if err := t.LoadTemplate(name, path); err != nil { + return err + } } return nil })