luci-base: dispatcher.uc: improve error reporting for actionless nodes
authorJo-Philipp Wich <jo@mein.io>
Mon, 21 Aug 2023 07:28:18 +0000 (09:28 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 21 Aug 2023 14:40:05 +0000 (16:40 +0200)
commit3f645bcf1f515da066affe6fc0ffe96d8298b521
tree954438b9f8f602d87ba3429cd3cc3a05ac67b765
parent4e4e504f3ddacfb5ab42cf602485f7e22997498e
luci-base: dispatcher.uc: improve error reporting for actionless nodes

In case a - potentially auto-created, intermediate - node is requested, reply
with a clean HTTP 404 error instead of an internal assertion about an unknown
action type.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 86f04d85fc774db9cb7e60a34a50f936d8d7be23)
modules/luci-base/ucode/dispatcher.uc