Fix promise error handling.

This commit is contained in:
Alexis Lahouze 2017-07-21 00:33:27 +02:00
parent d91089238d
commit d522aaad45

View File

@ -121,6 +121,7 @@ export class AccountListComponent {
modal.result.then((account: Account) => { modal.result.then((account: Account) => {
this.delete(account); this.delete(account);
}, (reason) => function(reason) {
}); });
}; };
@ -157,6 +158,7 @@ export class AccountListComponent {
modal.result.then((account: Account) => { modal.result.then((account: Account) => {
this.Logger.log("Modal closed => save account", account); this.Logger.log("Modal closed => save account", account);
this.save(account); this.save(account);
}, (reason) => function(reason) {
}); });
}; };
}; };