Skip to content

Commit

Permalink
luci-base: runtime.uc: fix error500() invocation on theme failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jow- committed Aug 7, 2023
1 parent 107ed06 commit 9763e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-base/ucode/runtime.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9763e3e

Please sign in to comment.