libs/web: Fixed a typo in template error handling
This commit is contained in:
parent
74408bbb74
commit
765d5b8540
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue