From ead9789e75824854c2ffab0c68bc0dd4269afc81 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sat, 7 Oct 2017 19:46:44 +0200 Subject: [PATCH] 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 --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2