Update template.go

This commit is contained in:
aruhi 2018-04-20 19:42:50 +09:00 committed by GitHub
parent f16688817a
commit 51cc6fc257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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