Unverified Commit f5f70f38 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3126 from aruhi/master

In dev mode, template parse error cause program lock
parents 242efcf7 51cc6fc2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment