luci-base: runtime.uc: fix error500() invocation on theme failure
authorJo-Philipp Wich <jo@mein.io>
Mon, 7 Aug 2023 21:36:36 +0000 (23:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 7 Aug 2023 22:14:23 +0000 (00:14 +0200)
commitbece581c8db0e361a9c8e76eeabc09c5784809db
tree2efa5edb39a2c79b8c8099365f57c527623f5c70
parent526c60aea8d12bcd3df61ef874d5a97074164a0e
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>
(cherry picked from commit 9763e3e9d320b5128f374117d0ff95ab8cc7f626)
modules/luci-base/ucode/runtime.uc