Merge pull request #4239 from etactica/error404-messages
luci-base: dispatcher: error404: flow message into template
This commit is contained in:
commit
4b8d4bac87
2 changed files with 2 additions and 1 deletions
|
@ -395,7 +395,7 @@ function error404(message)
|
|||
|
||||
local function render()
|
||||
local template = require "luci.template"
|
||||
template.render("error404")
|
||||
template.render("error404", {message=message})
|
||||
end
|
||||
|
||||
if not util.copcall(render) then
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
<%+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%>
|
||||
|
|
Loading…
Reference in a new issue