Changed errors messages
This commit is contained in:
@@ -90,9 +90,9 @@ export class ProfilFormComponent implements OnInit {
|
|||||||
|
|
||||||
await loading2.dismiss();
|
await loading2.dismiss();
|
||||||
await toast.present();
|
await toast.present();
|
||||||
} catch {
|
} catch(e) {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Modification impossible',
|
message: e.error ?? 'Modification impossible',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export class HomeComponent implements OnInit {
|
|||||||
this.groups.set(groups);
|
this.groups.set(groups);
|
||||||
} catch {
|
} catch {
|
||||||
const toast = await this.toastCtrl.create({
|
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,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export class LoginComponent implements OnInit {
|
|||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Email ou mot de passe incorrect',
|
message: e.error ?? 'Email ou mot de passe incorrect',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user