[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: more info in err
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: more info in error message |
Date: |
Wed, 05 Oct 2022 10:22:35 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 66ae0dd22 wallet-core: more info in error message
66ae0dd22 is described below
commit 66ae0dd2201b48771a9fad29b080b10a5b6e598c
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Oct 5 10:22:32 2022 +0200
wallet-core: more info in error message
---
packages/taler-wallet-core/src/operations/exchanges.ts | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts
b/packages/taler-wallet-core/src/operations/exchanges.ts
index 8d1f58893..82222a5c4 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -730,6 +730,12 @@ export async function updateExchangeFromUrlHandler(
};
}
+/**
+ * Find a payto:// URI of the exchange that is of one
+ * of the given target types.
+ *
+ * Throws if no matching account was found.
+ */
export async function getExchangePaytoUri(
ws: InternalWalletState,
exchangeBaseUrl: string,
@@ -752,7 +758,11 @@ export async function getExchangePaytoUri(
return account.payto_uri;
}
}
- throw Error("no matching exchange account found");
+ throw Error(
+ `no matching account found at exchange ${exchangeBaseUrl} for wire types
${j2s(
+ supportedTargetTypes,
+ )}`,
+ );
}
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: more info in error message,
gnunet <=