[components][msh]msh命令失败添加打印日志

This commit is contained in:
wdfk-prog 2024-06-24 10:05:15 +08:00 committed by Rbb666
parent f61c7085f7
commit 5b64870507
1 changed files with 4 additions and 0 deletions

View File

@ -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