1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:10:55 +00:00

return template build error

This commit is contained in:
zhufanmao 2017-09-02 17:55:26 +08:00
parent ef36ecd376
commit 4bc4f77c29

View File

@ -218,6 +218,7 @@ func BuildTemplate(dir string, files ...string) error {
} }
if err != nil { if err != nil {
logs.Error("parse template err:", file, err) logs.Error("parse template err:", file, err)
return err
} else { } else {
beeTemplates[file] = t beeTemplates[file] = t
} }