diff options
Diffstat (limited to 'modules/luci-base/luasrc/template.lua')
-rw-r--r-- | modules/luci-base/luasrc/template.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/template.lua b/modules/luci-base/luasrc/template.lua index ed46f50753..cd9b73b22b 100644 --- a/modules/luci-base/luasrc/template.lua +++ b/modules/luci-base/luasrc/template.lua @@ -71,7 +71,7 @@ function Template.__init__(self, name, template) -- If we have no valid template throw error, otherwise cache the template if not self.template then - error("Failed to load template '" .. name .. "'.\n" .. + error("Failed to load template '" .. self.name .. "'.\n" .. "Error while parsing template '" .. sourcefile .. "':\n" .. (err or "Unknown syntax error")) elseif name then |