cli: fix typo in error reporting

Return the proper error code for COMMAND_FAILED

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2026-01-04 10:59:38 +01:00
parent 9934c716ed
commit a10d10edd7
@@ -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);
},
};