Log exception in SendTransaction to Crashlytics.

- A user is having issues with its active private key, but we have not enugh information to solve the problem. A possible exception causing this issue will be logged to Crashlytics so that we can understand what is going on and solve it.
This commit is contained in:
Severiano Jaramillo 2019-10-01 17:38:50 -05:00
parent 5c6c727b00
commit 27f54e798e

View file

@ -151,9 +151,7 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand
context?.let { context?.let {
try { try {
wifKey = CryptoUtils.decrypt(it, encryptedWIF) wifKey = CryptoUtils.decrypt(it, encryptedWIF)
} catch (e: AEADBadTagException) { } catch (e: Exception) {
Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message)
} catch (e: IllegalStateException) {
Crashlytics.logException(e) Crashlytics.logException(e)
} }
} }