summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-10-07 19:46:44 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-10-07 19:55:04 +0200
commitead9789e75824854c2ffab0c68bc0dd4269afc81 (patch)
treea5829fb07a9e55a190478a99a4336d567ce668c0 /ubus.c
parent5df3f01a06b2710a8d8010f353db45b7507b15fb (diff)
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 <dedeckeh@gmail.com>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
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;
}