Changed errors messages

This commit is contained in:
2026-05-14 14:37:44 +01:00
parent 42116be9a6
commit e8c308adf8
3 changed files with 4 additions and 4 deletions
@@ -90,9 +90,9 @@ export class ProfilFormComponent implements OnInit {
await loading2.dismiss();
await toast.present();
} catch {
} catch(e) {
const toast = await this.toastCtrl.create({
message: 'Modification impossible',
message: e.error ?? 'Modification impossible',
duration: 2000,
color: 'danger'
});
+1 -1
View File
@@ -99,7 +99,7 @@ export class HomeComponent implements OnInit {
this.groups.set(groups);
} catch {
const toast = await this.toastCtrl.create({
message: 'Impossible de générer un défi aléatoire',
message: 'Impossible de générer un défi',
duration: 2000,
color: 'danger'
});
+1 -1
View File
@@ -104,7 +104,7 @@ export class LoginComponent implements OnInit {
return true;
} catch (e) {
const toast = await this.toastCtrl.create({
message: 'Email ou mot de passe incorrect',
message: e.error ?? 'Email ou mot de passe incorrect',
duration: 2000,
color: 'danger'
});