luci-base: runtime.uc: fix error500() invocation on theme failure

In case no single theme could be loaded successfully, the runtime class
failed to properly invoke the `error500()` method, which is only available
through the passed environment at this point.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2023-08-07 23:36:36 +02:00
parent 107ed061a8
commit 9763e3e9d3

View file

@ -173,7 +173,7 @@ export default function(env) {
}
if (!media)
error500(`Unable to render any theme header template, last error was:\n${status}`);
env.dispatcher.error500(`Unable to render any theme header template, last error was:\n${status}`);
}
self.env.media = media;