forked from mirror/openwrt
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:
parent
9934c716ed
commit
a10d10edd7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue