From 9ac49281135aa98c9a4ae18024b7ecb36e1865c9 Mon Sep 17 00:00:00 2001 From: Viktor Vassilyev Date: Wed, 7 Nov 2018 20:20:10 +0600 Subject: [PATCH] refactor(Template): a detailed description of the error --- template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template.go b/template.go index a3e0900f..d673a54d 100644 --- a/template.go +++ b/template.go @@ -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[ ]+\"([^\"]+)\"")