From: Steven Barth Date: Tue, 2 Sep 2008 09:02:13 +0000 (+0000) Subject: libs/web: Fixed a typo in template error handling X-Git-Tag: 0.8.0~192 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=765d5b8540edcbbb62bb9242b57930d249b2af09;p=project%2Fluci.git libs/web: Fixed a typo in template error handling --- 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