libs/web: Fixed a typo in template error handling

This commit is contained in:
Steven Barth 2008-09-02 09:02:13 +00:00
parent 74408bbb74
commit 765d5b8540

View file

@ -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