From fbc52949004a067a5c2cfefae1ff3415dbe04a96 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 18:51:30 +0100 Subject: In progress --- src/ft_map_error.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ft_map_error.c') diff --git a/src/ft_map_error.c b/src/ft_map_error.c index 263eee8..cb099dc 100644 --- a/src/ft_map_error.c +++ b/src/ft_map_error.c @@ -15,10 +15,12 @@ #include int - ft_map_error(t_cub *clist) + ft_map_error(const char *errmsg, t_cub *clist) { ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, - "\033[1;31mMap error: line %zu\033[0m\n", clist->mlist->line_chk); + "\033[1;31mMap error: line %3zu: %s\033[0m\n", + clist->mlist->line_chk, + errmsg); return (ft_exit(4, clist)); } -- cgit v1.2.3 From 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 20:29:21 +0100 Subject: Work in progress, res now --- src/ft_map_error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_map_error.c') diff --git a/src/ft_map_error.c b/src/ft_map_error.c index cb099dc..5d5ab68 100644 --- a/src/ft_map_error.c +++ b/src/ft_map_error.c @@ -19,7 +19,7 @@ int { ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, - "\033[1;31mMap error: line %3zu: %s\033[0m\n", + "\033[1;31mMap error: line %zu: %s\033[0m\n", clist->mlist->line_chk, errmsg); return (ft_exit(4, clist)); -- cgit v1.2.3