Add a clearer error message when the attempt to (un)enrol fails.
The error message returned by jQuery only contained "Error". This commit replaces it by a hard-coded, more descriptive error message in French.
This commit is contained in:
parent
ab4338aa84
commit
a0d158ca77
1 changed files with 2 additions and 2 deletions
|
@ -855,8 +855,8 @@ class EventDetails {
|
||||||
event.updateNodeStyle();
|
event.updateNodeStyle();
|
||||||
},
|
},
|
||||||
|
|
||||||
error: (_, message) => {
|
error: () => {
|
||||||
alert(message);
|
alert("Erreur lors de l'inscription ou de la désinscription à cette permanence.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue