print error

This commit is contained in:
Quinten Mennen 2025-02-05 20:48:45 +01:00
parent f86720a3ec
commit 473135b33d
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,6 @@
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "libft.h"
#include "minishell.h" #include "minishell.h"
static char *ft_parse_quotes(t_lexer *lexer) static char *ft_parse_quotes(t_lexer *lexer)

View File

@ -17,5 +17,8 @@ void print_list(void *content)
t_token *token; t_token *token;
token = (t_token *)content; token = (t_token *)content;
if (token->type != T_ERROR)
ft_printf("%s\n", token->value); ft_printf("%s\n", token->value);
else
ft_printf("unexpected token at position %i\n", token->position);
} }