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