fix: add error message when read|open failed

This commit is contained in:
Camille Chauvet 2023-05-04 10:48:31 +00:00
parent 900547d1cc
commit a301809bea

View File

@ -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)
{