add info about the missing token
This commit is contained in:
parent
2338e83df9
commit
7cbca7bffb
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ void ajoute_liste(Liste *liste, Element *nouveau) {
|
||||||
|
|
||||||
void supprime_liste(Element *act, Jeton *data) {
|
void supprime_liste(Element *act, Jeton *data) {
|
||||||
if (act->suivant == NULL) {
|
if (act->suivant == NULL) {
|
||||||
fprintf(stderr, "Élement introuvable dans la liste\n");
|
fprintf(stderr, "Élement introuvable dans la liste (");
|
||||||
|
affiche_jeton(stderr, data);
|
||||||
|
fprintf(stderr, ").\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue