diff options
author | Karl Palsson <karlp@etactica.com> | 2020-07-06 17:35:14 +0000 |
---|---|---|
committer | Karl Palsson <karlp@etactica.com> | 2020-07-07 15:01:03 +0000 |
commit | 48715ba5c8ccec4bfe326b1de612d7056d161000 (patch) | |
tree | f6bcb869d435d1b17c2093e301f353bd84b20192 /modules/luci-base/luasrc/dispatcher.lua | |
parent | 1af55c31b2795fdf0ddebf15c2724ac38d643331 (diff) |
error404: flow message into template
message was only being shown in the plain text case when the render
failed.
Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'modules/luci-base/luasrc/dispatcher.lua')
-rw-r--r-- | modules/luci-base/luasrc/dispatcher.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 57b4e12d17..6e62e25308 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -394,7 +394,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 |