mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
NSH: Improve an error message
This commit is contained in:
@@ -1254,7 +1254,15 @@ int cmd_arp(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
/* Error exits */
|
||||
|
||||
errout_cmdfaild:
|
||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "ioctl", NSH_ERRNO);
|
||||
if (ret == -ENOENT)
|
||||
{
|
||||
nsh_output(vtbl, g_fmtnosuch, argv[0], "ARP entry", argv[2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "ioctl", NSH_ERRNO);
|
||||
}
|
||||
|
||||
return ERROR;
|
||||
|
||||
errout_missing:
|
||||
|
Reference in New Issue
Block a user