luci-base: luci.js: consolidate error handling
authorJo-Philipp Wich <jo@mein.io>
Tue, 8 Jan 2019 14:32:17 +0000 (15:32 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:25:49 +0000 (15:25 +0200)
commitef187d5238aa0541d48832f3cd32b70ef53d2ad2
tree2d58867c7cfa9566934acb34b4824c5171ad5001
parent26e54bb01f62c2bcc6ac9ff96afe1e653838d45f
luci-base: luci.js: consolidate error handling

Add a new function L.error() which creates and throws a custom
error object with stack information and given type.

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