mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:30:54 +00:00
refactor(Template): a detailed description of the error
This commit is contained in:
parent
aa6d0f9f0b
commit
9ac4928113
@ -323,12 +323,13 @@ func _getTemplate(t0 *template.Template, root string, fs http.FileSystem, subMod
|
||||
f, err := fs.Open(fileAbsPath)
|
||||
if err != nil {
|
||||
f.Close()
|
||||
logs.Trace("template file parse error, not success open file:", err)
|
||||
continue
|
||||
}
|
||||
data, err = ioutil.ReadAll(f)
|
||||
f.Close()
|
||||
if err != nil {
|
||||
logs.Trace("template parse file err:", err)
|
||||
logs.Trace("template file parse error, not success read file:", err)
|
||||
continue
|
||||
}
|
||||
reg := regexp.MustCompile(BConfig.WebConfig.TemplateLeft + "[ ]*define[ ]+\"([^\"]+)\"")
|
||||
|
Loading…
Reference in New Issue
Block a user