From a301809beab3933b80a348de97aebaa4eceb025a Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Thu, 4 May 2023 10:48:31 +0000 Subject: [PATCH] fix: add error message when read|open failed --- map/parsing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/map/parsing.c b/map/parsing.c index 5a4ba6d..a6d847a 100644 --- a/map/parsing.c +++ b/map/parsing.c @@ -61,7 +61,10 @@ t_map *map_parsing(const char *path) return (NULL); file_content = read_map(path); if (file_content == NULL) + { + ft_eprintf("map: file error"); return (NULL); + } header = get_header((const char **) file_content, &header_size); if (header_is_valid(header, map) == 0) {