diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-07 19:46:44 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-07 19:55:04 +0200 |
commit | ead9789e75824854c2ffab0c68bc0dd4269afc81 (patch) | |
tree | a5829fb07a9e55a190478a99a4336d567ce668c0 /ubus.c | |
parent | 5df3f01a06b2710a8d8010f353db45b7507b15fb (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |