ubus: fix ubus error code on reload failure
[project/netifd.git] / ubus.c
diff --git a/ubus.c b/ubus.c
index bf72672..ebf9891 100644 (file)
--- 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;
 }