summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/dispatcher.uc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-11-21 12:20:58 +0100
committerJo-Philipp Wich <jo@mein.io>2022-11-21 12:20:58 +0100
commitc4d86c9f670a31e4541ccdf1876be3ab8b98ee5c (patch)
treee4b6887f0d8695887ecbfd633fea5e9d5fe882d0 /modules/luci-base/ucode/dispatcher.uc
parentbd01159c6eb77a0af252ab8b723836650a91aea6 (diff)
luci-base: expose sysauth rendering errors
In case a theme shipped sysauth.htm failed to render/execute, expose the exception error details in the ui theme fallback indicator. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/ucode/dispatcher.uc')
-rw-r--r--modules/luci-base/ucode/dispatcher.uc1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/ucode/dispatcher.uc b/modules/luci-base/ucode/dispatcher.uc
index 89ff391939..b08a2f8b7a 100644
--- a/modules/luci-base/ucode/dispatcher.uc
+++ b/modules/luci-base/ucode/dispatcher.uc
@@ -921,6 +921,7 @@ dispatch = function(_http, path) {
runtime.render(`themes/${basename(runtime.env.media)}/sysauth`, scope);
}
catch (e) {
+ runtime.env.media_error = `${e}`;
runtime.render('sysauth', scope);
}