1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 04:01:29 +00:00

Merge pull request #3126 from aruhi/master

In dev mode, template parse error cause program lock
This commit is contained in:
astaxie 2018-04-20 19:26:24 +08:00 committed by GitHub
commit f5f70f386d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
templatesLock.Unlock()
return err return err
} }
beeTemplates[file] = t beeTemplates[file] = t