parsing: add newline at end of error message

This commit is contained in:
Khaïs COLIN 2025-04-14 17:46:43 +02:00
parent dbba36dc44
commit 055dabc546

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */ /* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */ /* Created: 2025/03/31 10:28:28 by jguelen #+# #+# */
/* Updated: 2025/04/14 17:45:49 by khais ### ########.fr */ /* Updated: 2025/04/14 17:46:37 by khais ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -29,7 +29,7 @@
void parse_error(t_minishell *app, t_worddesc *token) void parse_error(t_minishell *app, t_worddesc *token)
{ {
ft_dprintf(STDERR_FILENO, "minishell: syntax error near unexpected " ft_dprintf(STDERR_FILENO, "minishell: syntax error near unexpected "
"token `%s'", token->word); "token `%s'\n", token->word);
app->last_return_value = 2; app->last_return_value = 2;
} }