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:
parent
bd01159c6e
commit
c4d86c9f67
1 changed files with 1 additions and 0 deletions
|
@ -921,6 +921,7 @@ dispatch = function(_http, path) {
|
||||||
runtime.render(`themes/${basename(runtime.env.media)}/sysauth`, scope);
|
runtime.render(`themes/${basename(runtime.env.media)}/sysauth`, scope);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
runtime.env.media_error = `${e}`;
|
||||||
runtime.render('sysauth', scope);
|
runtime.render('sysauth', scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue