summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/web/luasrc/template.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua
index 90ac69fba..2fec888c3 100644
--- a/libs/web/luasrc/template.lua
+++ b/libs/web/luasrc/template.lua
@@ -76,7 +76,9 @@ function Template.__init__(self, name)
if not self.template then
-- Compile template
+ local err
local sourcefile = viewdir .. "/" .. name .. ".htm"
+
self.template, _, err = tparser.parse(sourcefile)
-- If we have no valid template throw error, otherwise cache the template