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:
parent
107ed061a8
commit
9763e3e9d3
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ export default function(env) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!media)
|
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;
|
self.env.media = media;
|
||||||
|
|
Loading…
Reference in a new issue