mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:21:02 +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)
|
f, err := fs.Open(fileAbsPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
f.Close()
|
f.Close()
|
||||||
|
logs.Trace("template file parse error, not success open file:", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
data, err = ioutil.ReadAll(f)
|
data, err = ioutil.ReadAll(f)
|
||||||
f.Close()
|
f.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Trace("template parse file err:", err)
|
logs.Trace("template file parse error, not success read file:", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
reg := regexp.MustCompile(BConfig.WebConfig.TemplateLeft + "[ ]*define[ ]+\"([^\"]+)\"")
|
reg := regexp.MustCompile(BConfig.WebConfig.TemplateLeft + "[ ]*define[ ]+\"([^\"]+)\"")
|
||||||
|
Loading…
Reference in New Issue
Block a user