fixed syntax error error code and exit too big

This commit is contained in:
mdev9
2024-04-25 13:45:13 +02:00
parent 7f85951e43
commit bee12290d5
4 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/27 17:19:27 by tomoron #+# #+# */
/* Updated: 2024/04/24 18:59:26 by marde-vr ### ########.fr */
/* Updated: 2024/04/25 13:03:18 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,7 @@ t_token *parsing_syntax_error(t_token *res)
{
free_token(res);
ft_putstr_fd("minishell: syntax error\n", 2);
g_return_code = 2;
return ((void *)1);
}