summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/template.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-02 09:02:13 +0000
committerSteven Barth <steven@midlink.org>2008-09-02 09:02:13 +0000
commit765d5b8540edcbbb62bb9242b57930d249b2af09 (patch)
treeed7dba9fd0bd3abbe3a21de334a0061600b456d5 /libs/web/luasrc/template.lua
parent74408bbb74c184b311ffebfbb4db38429c8247c0 (diff)
libs/web: Fixed a typo in template error handling
Diffstat (limited to 'libs/web/luasrc/template.lua')
-rw-r--r--libs/web/luasrc/template.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua
index e78bfb695..98e60f72b 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