Commit 9ac49281 authored by Viktor Vassilyev's avatar Viktor Vassilyev

refactor(Template): a detailed description of the error

parent aa6d0f9f
...@@ -323,12 +323,13 @@ func _getTemplate(t0 *template.Template, root string, fs http.FileSystem, subMod ...@@ -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[ ]+\"([^\"]+)\"")
......
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