diff --git a/subsys/shell/shell.c b/subsys/shell/shell.c index 5a54e0cc9de..3f4c0cbfa3e 100644 --- a/subsys/shell/shell.c +++ b/subsys/shell/shell.c @@ -1437,7 +1437,7 @@ int shell_execute_cmd(const struct shell *shell, const char *cmd) } if (cmd_len > (CONFIG_SHELL_CMD_BUFF_SIZE - 1)) { - return -ENOEXEC; + return -ENOMEM; } if (shell == NULL) {