luci-base: luci.js: rework error handling
authorJo-Philipp Wich <jo@mein.io>
Wed, 11 Sep 2019 07:28:21 +0000 (09:28 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 Sep 2019 10:21:05 +0000 (12:21 +0200)
commitc3ddcbb542d99c4284981015fcaa429c7d474391
tree8e7366b59ee5fadd6c9d19b416a80a6d9eb1481a
parentf141433f5e38153e9dfbb8b320dfa70db1a47cf2
luci-base: luci.js: rework error handling

 - Capture stack trace in L.raise() if passed type is not an Error instance
 - Use L.ui.addNotification in L.error() to render the error message
 - Prevent duplicate error reporting in the ui

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