From: Felix Fietkau Date: Sun, 4 Jan 2026 09:59:14 +0000 (+0100) Subject: cli: fix typo in error reporting X-Git-Tag: v25.12.0-rc2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0b24e2a9f121f1803acdd861a74c66ec6ba33dd;p=thirdparty%2Fopenwrt.git cli: fix typo in error reporting Return the proper error code for COMMAND_FAILED Signed-off-by: Felix Fietkau (cherry picked from commit a10d10edd72e17a26f8b3c16cfc72984375844d2) --- 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 0977cda741c..18d6eb202ec 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); }, };