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:
Jo-Philipp Wich 2022-11-21 12:20:58 +01:00
parent bd01159c6e
commit c4d86c9f67

View file

@ -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);
}