From 765d5b8540edcbbb62bb9242b57930d249b2af09 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 2 Sep 2008 09:02:13 +0000 Subject: libs/web: Fixed a typo in template error handling --- libs/web/luasrc/template.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web') 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 -- cgit v1.2.3