message was only being shown in the plain text case when the render
failed.
Signed-off-by: Karl Palsson <karlp@etactica.com>
local function render()
local template = require "luci.template"
- template.render("error404")
+ template.render("error404", {message=message})
end
if not util.copcall(render) then
<%+header%>
<h2 name="content">404 <%:Not Found%></h2>
<p><%:Sorry, the object you requested was not found.%></p>
+<p><%=message%></p>
<tt><%:Unable to dispatch%>: <%=url(unpack(luci.dispatcher.context.request))%></tt>
<%+footer%>