diff --git a/android/app/src/main/java/updated/mysterium/vpn/ui/prepare/top/up/PrepareTopUpActivity.kt b/android/app/src/main/java/updated/mysterium/vpn/ui/prepare/top/up/PrepareTopUpActivity.kt index 069c5fe9c..1eb4b442a 100644 --- a/android/app/src/main/java/updated/mysterium/vpn/ui/prepare/top/up/PrepareTopUpActivity.kt +++ b/android/app/src/main/java/updated/mysterium/vpn/ui/prepare/top/up/PrepareTopUpActivity.kt @@ -5,6 +5,7 @@ import android.os.Bundle import android.util.Log import android.view.View import android.widget.EditText +import android.widget.Toast import androidx.core.content.ContextCompat import androidx.core.widget.addTextChangedListener import network.mysterium.vpn.R @@ -157,6 +158,14 @@ class PrepareTopUpActivity : BaseActivity() { isReferralTokenUsed = true onSuccess.invoke() } + it.onFailure { throwable -> + Log.e(TAG, throwable.localizedMessage ?: throwable.toString()) + Toast.makeText( + this, + getString(R.string.intercom_something_went_wrong_try_again), + Toast.LENGTH_LONG + ).show() + } }) }