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:
Daru13 2018-11-24 03:32:07 +01:00
parent ab4338aa84
commit a0d158ca77

View file

@ -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.");
} }
}); });
}); });