From: Hans Dedecker Date: Sat, 7 Oct 2017 17:46:44 +0000 (+0200) Subject: ubus: fix ubus error code on reload failure X-Git-Url: http://git.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=ead9789e75824854c2ffab0c68bc0dd4269afc81 ubus: fix ubus error code on reload failure Return the more approriate error code UBUS_STATUS_NOT_FOUND in case network reload fails Signed-off-by: Hans Dedecker --- diff --git a/ubus.c b/ubus.c index bf72672..ebf9891 100644 --- a/ubus.c +++ b/ubus.c @@ -45,7 +45,7 @@ netifd_handle_reload(struct ubus_context *ctx, struct ubus_object *obj, struct blob_attr *msg) { if (netifd_reload()) - return UBUS_STATUS_UNKNOWN_ERROR; + return UBUS_STATUS_NOT_FOUND; return UBUS_STATUS_OK; }