Skip to content

Commit

Permalink
sys/shell/ping: print error when DNS resolve fails
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 7, 2024
1 parent 4df5306 commit bfdda46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/shell/cmds/gnrc_icmpv6_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ static int _configure(int argc, char **argv, _ping_data_t *data)

res = netutils_get_ipv6(&data->host, (netif_t **)&data->netif, arg);
if (res) {
break;
printf("can't resolve %s\n", arg);
return res;
}
}
else {
Expand Down

0 comments on commit bfdda46

Please sign in to comment.