From d522aaad4554a041ce264c6967ce5f3d5d920a22 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 21 Jul 2017 00:33:27 +0200 Subject: [PATCH] Fix promise error handling. --- src/accounts/accountList.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/accounts/accountList.component.ts b/src/accounts/accountList.component.ts index c91c585..d1f3df7 100644 --- a/src/accounts/accountList.component.ts +++ b/src/accounts/accountList.component.ts @@ -121,6 +121,7 @@ export class AccountListComponent { modal.result.then((account: Account) => { this.delete(account); + }, (reason) => function(reason) { }); }; @@ -157,6 +158,7 @@ export class AccountListComponent { modal.result.then((account: Account) => { this.Logger.log("Modal closed => save account", account); this.save(account); + }, (reason) => function(reason) { }); }; };