File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed
java/com/getcode/view/main/home Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -1559,26 +1559,15 @@ class HomeViewModel @Inject constructor(
1559
1559
removeLinkWithDelay(base58Entropy)
1560
1560
}
1561
1561
} catch (ex: Exception ) {
1562
- ex.printStackTrace()
1563
- Timber .e(ex)
1564
- when (ex) {
1565
- is RemoteSendException -> {
1566
- onRemoteSendError(ex)
1567
- removeLinkWithDelay(base58Entropy)
1568
- }
1569
-
1570
- else -> {
1571
- ErrorUtils .handleError(ex)
1572
- }
1573
- }
1562
+ onRemoteSendError(ex)
1574
1563
}
1575
1564
}
1576
1565
}
1577
1566
}
1578
1567
} catch (e: Base58 .AddressFormatException .InvalidCharacter ) {
1579
- ErrorUtils .handleError (e)
1568
+ onRemoteSendError (e)
1580
1569
} catch (e: Exception ) {
1581
- ErrorUtils .handleError (e)
1570
+ onRemoteSendError (e)
1582
1571
}
1583
1572
}
1584
1573
@@ -1598,7 +1587,15 @@ class HomeViewModel @Inject constructor(
1598
1587
)
1599
1588
1600
1589
else -> {
1601
- ErrorUtils .handleError(throwable)
1590
+ TopBarManager .showMessage(
1591
+ getString(R .string.error_title_failedToCollect),
1592
+ getString(R .string.error_description_failedToCollect)
1593
+ )
1594
+ val traceableError = Throwable (
1595
+ message = " Failed to receive remote send" ,
1596
+ cause = throwable
1597
+ )
1598
+ ErrorUtils .handleError(traceableError)
1602
1599
}
1603
1600
}
1604
1601
}
Original file line number Diff line number Diff line change 39
39
<string name =" action_tapToShareDownloadLink" >Tap the Code logo to share the app download link</string >
40
40
<string name =" title_scanToDownloadCode" >Scan to download the Code Wallet app</string >
41
41
<string name =" action_resetTooltips" >Reset Tooltips</string >
42
+
43
+ <string name =" error_title_failedToCollect" >Failed to Collect</string >
44
+ <string name =" error_description_failedToCollect" >Something went wrong. This Kin could not be collected.</string >
45
+
42
46
</resources >
You can’t perform that action at this time.
0 commit comments