aboutsummaryrefslogtreecommitdiff
path: root/wallet/src/main
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2022-11-04 14:49:32 -0300
committerTorsten Grote <t@grobox.de>2022-11-04 14:49:32 -0300
commitb6a42f1dbede30dba0fc969b81eb2fb4e5eb3883 (patch)
tree734fa725a673c74df7315a100d3b4e24e3d0c316 /wallet/src/main
parent963fe8f3bee1971d6873d93737e5e6056ca1a6c2 (diff)
downloadtaler-android-b6a42f1dbede30dba0fc969b81eb2fb4e5eb3883.tar.gz
taler-android-b6a42f1dbede30dba0fc969b81eb2fb4e5eb3883.tar.bz2
taler-android-b6a42f1dbede30dba0fc969b81eb2fb4e5eb3883.zip
[wallet] Include error message when listExchanges fails
Diffstat (limited to 'wallet/src/main')
-rw-r--r--wallet/src/main/java/net/taler/wallet/exchanges/ExchangeManager.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/exchanges/ExchangeManager.kt b/wallet/src/main/java/net/taler/wallet/exchanges/ExchangeManager.kt
index 36b5017..5a4c6c2 100644
--- a/wallet/src/main/java/net/taler/wallet/exchanges/ExchangeManager.kt
+++ b/wallet/src/main/java/net/taler/wallet/exchanges/ExchangeManager.kt
@@ -55,7 +55,7 @@ class ExchangeManager(
scope.launch {
val response = api.request("listExchanges", ExchangeListResponse.serializer())
response.onError {
- throw AssertionError("Wallet core failed to return exchanges!")
+ throw AssertionError("Wallet core failed to return exchanges! ${it.userFacingMsg}")
}.onSuccess {
Log.d(TAG, "Exchange list: ${it.exchanges}")
mProgress.value = false