Skip to content
Commit bd713f87 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: rpc.js: add ability to reject nonzero ubus statuses



Add a new declare option `reject` which makes the generated RPC call
function reject with an error in case the remote ubus call returned
a non-zero status.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 465891ff
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment