diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-08-07 23:29:50 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-08-07 23:29:50 +0200 |
commit | a435d4e11a1f0701200ad392000dbaf0d0135405 (patch) | |
tree | 6d752d66d9c5f57d15f7ddc8d1d031dc9c67c8a8 /modules/luci-base/ucode | |
parent | 48b096de1c6f14025566536d9989a72999d1fe62 (diff) |
luci-base: dispatcher.uc: fix error500() reporting in fallback case
Fix the `error500()` fallback code path to properly output the given error
message in case rendering the error template failed.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/ucode')
-rw-r--r-- | modules/luci-base/ucode/dispatcher.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/ucode/dispatcher.uc b/modules/luci-base/ucode/dispatcher.uc index 39af8375ea..831922ac1d 100644 --- a/modules/luci-base/ucode/dispatcher.uc +++ b/modules/luci-base/ucode/dispatcher.uc @@ -52,7 +52,7 @@ function error500(msg, ex) { } catch { http.write('<!--]]>--><!--\'>--><!--">-->\n'); - http.write(`<p>${trim(ex)}</p>\n`); + http.write(`<p>${trim(msg)}</p>\n`); if (ex) { http.write(`<p>${trim(ex.message)}</p>\n`); |