luci-base: luci.js: rework L.error()
authorJo-Philipp Wich <jo@mein.io>
Tue, 28 May 2019 16:57:43 +0000 (18:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:25 +0000 (15:36 +0200)
commit8a6b89c671f864cb3033287211e4438b16ea5eb7
tree85911b63c3c1add9ce467ea011c64ca87d2b0884
parentf302eabd728a02c62b96ec12295201b658313698
luci-base: luci.js: rework L.error()

Factor out an L.raise() function out of L.error() which constructs and
throws an exception object.

Rework the remaining L.error() function to internally use L.raise() to
construct exceptionts to render.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js