libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 7d1908e185d3d189a6d9fe08eb2e8e200d9a0aef
parent 19241961a197530ab219ac194c02abac295b8953
Author: tanhengyeow <E0032242@u.nus.edu>
Date:   Mon,  6 Jul 2020 14:42:58 +0800

Update naming for errors

Diffstat:
Mfrontend/src/components/bank-accounts/AddBankConnectionDrawer.tsx | 2+-
Mfrontend/src/components/bank-accounts/BankConnectionDrawer.tsx | 4++--
Mfrontend/src/components/bank-accounts/Index.tsx | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/frontend/src/components/bank-accounts/AddBankConnectionDrawer.tsx b/frontend/src/components/bank-accounts/AddBankConnectionDrawer.tsx @@ -83,7 +83,7 @@ const AddBankConnectionDrawer = (props) => { if (response.ok) { return response.blob(); } - throw 'Cannot fetch keyletter'; + throw 'Cannot retrieve keyletter'; }) .then(async (blob) => { const pdfLink = URL.createObjectURL(blob); diff --git a/frontend/src/components/bank-accounts/BankConnectionDrawer.tsx b/frontend/src/components/bank-accounts/BankConnectionDrawer.tsx @@ -45,7 +45,7 @@ const BankConnectionDrawer = (props) => { if (response.ok) { return response.blob(); } - throw 'Cannot fetch keyletter'; + throw 'Cannot retrieve keyletter'; }) .then(async (blob) => { const pdfLink = URL.createObjectURL(blob); @@ -66,7 +66,7 @@ const BankConnectionDrawer = (props) => { }) .then((response) => { if (!response.ok) { - throw 'Cannot fetch bank accounts'; + throw 'Cannot retrieve bank accounts'; } return response.json(); }) diff --git a/frontend/src/components/bank-accounts/Index.tsx b/frontend/src/components/bank-accounts/Index.tsx @@ -26,7 +26,7 @@ const BankAccounts = () => { if (response.ok) { return response.json(); } - throw 'Cannot fetch bank connections'; + throw 'Cannot retrieve bank connections'; }) .then((response) => { setConnectionsList(response); @@ -47,7 +47,7 @@ const BankAccounts = () => { if (response.ok) { return response.json(); } - throw 'Cannot fetch bank accounts'; + throw 'Cannot retrieve bank accounts'; }) .then((response) => { setAccountsList(response.accounts);