mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 11:16:38 +04:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user