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:
Raphael 2026-03-30 19:20:56 +02:00
parent 67addc4c1c
commit 14e05066cc
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */ /* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/23 14:49:36 by rparodi #+# #+# */ /* 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."); ERROR_LOG("ft_ping: missing host operand\nTry 'ft_ping --help' or 'ft_ping --usage' for more information.");
exit(64); exit(64);
} }