luci-base: rpc.js: add getStatusText() call
authorJo-Philipp Wich <jo@mein.io>
Tue, 3 Sep 2019 17:17:20 +0000 (19:17 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 13:28:16 +0000 (15:28 +0200)
commitaef4bc3a23529425b8036be2baed4327efaf85bb
treec0b5a4fbf6c661b29a08ff2e28db0c0804c16c2c
parent93af8a3af8c389f3f24ec95a2cda9b455050e4fe
luci-base: rpc.js: add getStatusText() call

The new function allows translating an ubus return code into a human
readable error message.

Also report the called object and method on ubus rpc errors.

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