mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
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
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