Updated on 2026-08-14

This commit is contained in:
Tangem 2020-10-21 21:46:44 +00:00
commit c0252fedcb
3 changed files with 8 additions and 4 deletions

View file

@ -89,7 +89,8 @@ private fun verifyAndSendTransaction(
}
}
is Throwable -> {
val message = (result.error as Throwable).message
val throwable = result.error as Throwable
val message = throwable.message
when {
message == null -> {
dispatch(SendAction.SendError(TapError.UnknownError))
@ -98,8 +99,9 @@ private fun verifyAndSendTransaction(
// user was cancelled the operation by closing the Sdk bottom sheet
}
else -> {
Timber.e(result.error)
dispatch(SendAction.SendError(TapError.BlockchainInternalError))
Timber.e(throwable)
FirebaseCrashlytics.getInstance().recordException(throwable)
dispatch(SendAction.SendError(TapError.CustomError(message)))
}
}
}