style(parsing/sources): using the same error message for empty args
- This message is the same of the ping command (inetutils 2.0).
This commit is contained in:
parent
67addc4c1c
commit
14e05066cc
1 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/23 14:49:36 by rparodi #+# #+# */
|
||||
/* Updated: 2026/03/30 15:53:23 by rparodi ### ########.fr */
|
||||
/* Updated: 2026/03/30 19:07:53 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ static char *_find_target(int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
if (target == NULL || target[0] == '\0') {
|
||||
if (target == NULL) {
|
||||
ERROR_LOG("ft_ping: missing host operand\nTry 'ft_ping --help' or 'ft_ping --usage' for more information.");
|
||||
exit(64);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue