Changed errors messages
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user