an educated user is worth 2

justified vm behaviour with more comprehensive messages
This commit is contained in:
Tanguy MAZE
2019-07-17 15:08:15 +02:00
parent 89efc78f22
commit de92403dd0
2 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
/* By: igarbuz <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/11 16:54:36 by igarbuz #+# #+# */
/* Updated: 2019/07/13 17:21:07 by tmaze ### ########.fr */
/* Updated: 2019/07/17 14:53:50 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,8 +24,8 @@ int err_msg(int err, t_vm *vm)
else if (err == 4)
ft_printf("Error champ no.%d: File is not .cor\n", vm->nb_j);
else if (err == 5)
ft_printf("Error champ no.%d: Number %d already in use\n", vm->nb_j
, vm->pls[vm->nb_j].num);
ft_printf("Error champ no.%d: Number already in use/invalid\n"
, vm->nb_j);
else if (err == 6)
{
ft_printf("Error dump: Missing or Invalid number\n");