From 4bc4f77c29ea45aa6e055d303667f3310ea441a9 Mon Sep 17 00:00:00 2001 From: zhufanmao Date: Sat, 2 Sep 2017 17:55:26 +0800 Subject: [PATCH] return template build error --- template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/template.go b/template.go index d4859cd7..41da7ad9 100644 --- a/template.go +++ b/template.go @@ -218,6 +218,7 @@ func BuildTemplate(dir string, files ...string) error { } if err != nil { logs.Error("parse template err:", file, err) + return err } else { beeTemplates[file] = t }