mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-05-09 20:06:01 +02:00
templates: Return error from LoadTemplate
This commit is contained in:
parent
07a54e89dd
commit
39f456d3ec
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue