From 5b648705073e60a1a3dee8181d0b628c040fb96a Mon Sep 17 00:00:00 2001 From: wdfk-prog <1425075683@qq.com> Date: Mon, 24 Jun 2024 10:05:15 +0800 Subject: [PATCH] =?UTF-8?q?[components][msh]msh=E5=91=BD=E4=BB=A4=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/msh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 92ecf12a3e..9cc0c6b340 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -557,6 +557,10 @@ int msh_exec(char *cmd, rt_size_t length) */ if (_msh_exec_cmd(cmd, length, &cmd_ret) == 0) { + if(cmd_ret < 0) + { + rt_kprintf("%s: command failed %d.\n", cmd, cmd_ret); + } return cmd_ret; } #ifdef DFS_USING_POSIX