libs/web: Fixed a typo in template error handling
authorSteven Barth <steven@midlink.org>
Tue, 2 Sep 2008 09:02:13 +0000 (09:02 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 2 Sep 2008 09:02:13 +0000 (09:02 +0000)
libs/web/luasrc/template.lua

index e78bfb695ce3c994864ccc5b09f64a7d45ee2514..98e60f72b6f406094d7c89550fced5e0ec4f011a 100644 (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