From: Lukas Jiriste Date: Thu, 5 Sep 2024 07:47:59 +0000 (+0200) Subject: Write generic error to stderr X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=HEAD;p=42%2Fminishell.git Write generic error to stderr --- diff --git a/src/input_handling.c b/src/input_handling.c index 5347db0..1337955 100644 --- a/src/input_handling.c +++ b/src/input_handling.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/03 09:00:00 by ljiriste #+# #+# */ -/* Updated: 2024/08/31 11:58:46 by ljiriste ### ########.fr */ +/* Updated: 2024/09/05 09:41:13 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,7 @@ #include "minishell.h" #include "libft.h" #include +#include void handle_input(char **input, t_execution_env *env) { @@ -40,6 +41,6 @@ void handle_input(char **input, t_execution_env *env) ft_vec_free(&tokens, free_token); ft_parse_tree_free(parse_tree); if (res != 0) - ft_printf("An error has occured.\n"); + ft_dprintf(STDERR_FILENO, "An error has occured.\n"); return ; }