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:
parent
ec16f2532d
commit
c0b24e2a9f
@ -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);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user