uci: tighten uci delete operation error handling
authorJo-Philipp Wich <jo@mein.io>
Wed, 8 Aug 2018 20:53:21 +0000 (22:53 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 8 Aug 2018 22:07:27 +0000 (00:07 +0200)
commitf91751b767b4b354d29821c659a443b615f8e13d
tree8be27f5a48930d31c3537f9136503a2af648610a
parentc2c612b67ca47d25ac08f3f729da8c8e233d9a4e
uci: tighten uci delete operation error handling

- Return UBUS_STATUS_NOT_FOUND if no object could be resolved for delete
- Return UBUS_STATUS_INVALID_ARGUMENT for invalid section names or types

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uci.c