From f6466c064f0a8e136f2c51cc788cc8adaaa49f22 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 5 Sep 2024 09:47:59 +0200 Subject: [PATCH] Write generic error to stderr --- src/input_handling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ; } -- 2.30.2