fix: add error message when read|open failed
This commit is contained in:
parent
900547d1cc
commit
a301809bea
@ -61,7 +61,10 @@ t_map *map_parsing(const char *path)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
file_content = read_map(path);
|
file_content = read_map(path);
|
||||||
if (file_content == NULL)
|
if (file_content == NULL)
|
||||||
|
{
|
||||||
|
ft_eprintf("map: file error");
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
}
|
||||||
header = get_header((const char **) file_content, &header_size);
|
header = get_header((const char **) file_content, &header_size);
|
||||||
if (header_is_valid(header, map) == 0)
|
if (header_is_valid(header, map) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user