[openwrt/openwrt] cli: fix typo in error reporting
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 4 01:59:44 PST 2026
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a10d10edd72e17a26f8b3c16cfc72984375844d2
commit a10d10edd72e17a26f8b3c16cfc72984375844d2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Jan 4 10:59:14 2026 +0100
cli: fix typo in error reporting
Return the proper error code for COMMAND_FAILED
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
package/utils/cli/files/usr/share/ucode/cli/context-call.uc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/utils/cli/files/usr/share/ucode/cli/context-call.uc b/package/utils/cli/files/usr/share/ucode/cli/context-call.uc
index 0977cda741..18d6eb202e 100644
--- a/package/utils/cli/files/usr/share/ucode/cli/context-call.uc
+++ b/package/utils/cli/files/usr/share/ucode/cli/context-call.uc
@@ -98,7 +98,7 @@ export const callctx_error_proto = {
return this.error("NOT_FOUND", msg ?? "Not found", ...args);
},
command_failed: function(msg, ...args) {
- return this.error("COMMAND_FAILEDu", msg ?? "Command failed", ...args);
+ return this.error("COMMAND_FAILED", msg ?? "Command failed", ...args);
},
};
More information about the lede-commits
mailing list