summaryrefslogtreecommitdiff
path: root/src/headless/helpers.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
commite60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch)
tree45f7c86b66dc150d413f9855efaa6341e4a44624 /src/headless/helpers.ts
parentf4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff)
downloadwallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.gz
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.bz2
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.zip
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/headless/helpers.ts')
-rw-r--r--src/headless/helpers.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts
index 67ba62df8..e451db55b 100644
--- a/src/headless/helpers.ts
+++ b/src/headless/helpers.ts
@@ -143,7 +143,10 @@ export async function withdrawTestBalance(
exchangeBaseUrl = "https://exchange.test.taler.net/",
): Promise<void> {
await myWallet.updateExchangeFromUrl(exchangeBaseUrl, true);
- const reserveResponse = await myWallet.acceptManualWithdrawal(exchangeBaseUrl, Amounts.parseOrThrow(amount));
+ const reserveResponse = await myWallet.acceptManualWithdrawal(
+ exchangeBaseUrl,
+ Amounts.parseOrThrow(amount),
+ );
const reservePub = reserveResponse.reservePub;