Avoids showing error machine-level details when paying for zaps on external wallets
This commit is contained in:
@@ -444,11 +444,12 @@ fun payViaIntent(
|
|||||||
ContextCompat.startActivity(context, intent, null)
|
ContextCompat.startActivity(context, intent, null)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e is CancellationException) throw e
|
if (e is CancellationException) throw e
|
||||||
if (e.message != null) {
|
// don't display ugly error messages
|
||||||
onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
|
// if (e.message != null) {
|
||||||
} else {
|
// onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
|
||||||
|
// } else {
|
||||||
onError(context.getString(R.string.no_wallet_found))
|
onError(context.getString(R.string.no_wallet_found))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user