From: Felix Fietkau Date: Fri, 6 Jun 2025 08:42:57 +0000 (+0200) Subject: unetd: cli: fix error reporting in the apply command X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ffed9c84eed2b7530aef863661e3847fa4da02df;p=openwrt%2Fstaging%2Fnbd.git unetd: cli: fix error reporting in the apply command Pass errors during config signing to the user Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/unetd/files/unet.uc b/package/network/services/unetd/files/unet.uc index 44d1c83e5d..453c58adb0 100644 --- a/package/network/services/unetd/files/unet.uc +++ b/package/network/services/unetd/files/unet.uc @@ -1279,8 +1279,11 @@ let UnetEdit = { if (network_apply(ctx, argv, named)) changed = true; - if (!changed) + if (!changed) { + if (length(ctx.result.errors) > 0) + return; return ctx.ok("No changes"); + } return ctx.ok("Changes applied"); }