diff options
Diffstat (limited to 'libs/web/luasrc/template.lua')
-rw-r--r-- | libs/web/luasrc/template.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index e78bfb695c..98e60f72b6 100644 --- a/libs/web/luasrc/template.lua +++ b/libs/web/luasrc/template.lua @@ -246,7 +246,7 @@ function Template.render(self, scope) local stat, err = util.copcall(self.template) if not stat then setfenv(self.template, oldfenv) - error("Error in template %s: %s" % {self.name, chunk}) + error("Error in template %s: %s" % {self.name, err}) end -- Reset environment |