mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 08:20:51 +00:00
Avoids showing error machine-level details when paying for zaps on external wallets
This commit is contained in:
parent
77789379c0
commit
ffc0a7c6ed
@ -444,11 +444,12 @@ fun payViaIntent(
|
||||
ContextCompat.startActivity(context, intent, null)
|
||||
} catch (e: Exception) {
|
||||
if (e is CancellationException) throw e
|
||||
if (e.message != null) {
|
||||
onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
|
||||
} else {
|
||||
onError(context.getString(R.string.no_wallet_found))
|
||||
}
|
||||
// don't display ugly error messages
|
||||
// if (e.message != null) {
|
||||
// onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
|
||||
// } else {
|
||||
onError(context.getString(R.string.no_wallet_found))
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user