mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:10:54 +00:00
Merge pull request #3126 from aruhi/master
In dev mode, template parse error cause program lock
This commit is contained in:
commit
f5f70f386d
@ -218,6 +218,7 @@ func BuildTemplate(dir string, files ...string) error {
|
||||
}
|
||||
if err != nil {
|
||||
logs.Error("parse template err:", file, err)
|
||||
templatesLock.Unlock()
|
||||
return err
|
||||
}
|
||||
beeTemplates[file] = t
|
||||
|
Loading…
Reference in New Issue
Block a user