aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_map_error.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 00:09:11 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 00:09:11 +0100
commitfbd69257b509d3374573282ee08f5d9fc9ed4095 (patch)
tree28b9ab225e910a8ae279623b08152e310431242c /src/ft_map_error.c
parentNice and working (diff)
download42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.gz
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.bz2
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.xz
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.zst
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.zip
It ain't much but it's honest work
Diffstat (limited to 'src/ft_map_error.c')
-rw-r--r--src/ft_map_error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_map_error.c b/src/ft_map_error.c
index bffb6d1..dae08e9 100644
--- a/src/ft_map_error.c
+++ b/src/ft_map_error.c
@@ -1,9 +1,11 @@
#include <libft.h>
#include <cub3d.h>
+#include <unistd.h>
int
ft_map_error(unsigned int line)
{
- ft_printf("\033[1;31mMap error: line %d\033[0m\n", line);
+ ft_dprintf(STDERR_FILENO, "Error\n");
+ ft_dprintf(STDERR_FILENO, "\033[1;31mMap error: line %d\033[0m\n", line);
return (ft_exit(1));
}