cli: fix typo in error reporting

Return the proper error code for COMMAND_FAILED

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit a10d10edd7)
This commit is contained in:
Felix Fietkau 2026-01-04 10:59:14 +01:00 committed by Hauke Mehrtens
parent ec16f2532d
commit c0b24e2a9f

View file

@ -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);
},
};