test
This commit is contained in:
10
srcs/main.c
10
srcs/main.c
@@ -6,7 +6,7 @@
|
||||
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */
|
||||
/* Updated: 2019/04/14 14:27:31 by vmanzoni ### ########.fr */
|
||||
/* Updated: 2019/04/14 14:39:28 by vmanzoni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -19,9 +19,9 @@ int main(int argc, char **argv)
|
||||
if (argc == 2)
|
||||
{
|
||||
if (!(input = read_file(argv[1])))
|
||||
ft_display_error("Error: Could not read file.\n", 2);
|
||||
if (ft_file_errors(input))
|
||||
ft_display_error("Error: Invalid file.\n", 2);
|
||||
print_error("Error: Could not read file.\n");
|
||||
else if (ft_file_errors(input))
|
||||
print_error("Error: Invalid file.\n");
|
||||
/*
|
||||
Check if every tetrimino is valid
|
||||
Transform input to tetriminos
|
||||
@@ -32,6 +32,6 @@ int main(int argc, char **argv)
|
||||
print_test(input);
|
||||
}
|
||||
else
|
||||
ft_display_error("Error: Please submit a file.\n", 2);
|
||||
print_error("Error: Please submit a file.\n");
|
||||
return (0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user