projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74408bb
)
libs/web: Fixed a typo in template error handling
author
Steven Barth
<steven@midlink.org>
Tue, 2 Sep 2008 09:02:13 +0000
(09:02 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 2 Sep 2008 09:02:13 +0000
(09:02 +0000)
libs/web/luasrc/template.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/template.lua
b/libs/web/luasrc/template.lua
index e78bfb695ce3c994864ccc5b09f64a7d45ee2514..98e60f72b6f406094d7c89550fced5e0ec4f011a 100644
(file)
--- 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