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