Simplify notification error when device wasn't found
MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -133,7 +133,7 @@ namespace WalletWasabi.Gui.ViewModels
.Subscribe(ex =>
{
Logger.LogError(ex);
- NotificationHelpers.Error("Could not find the device. Make sure it is connected.");
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}

MODIFY
WalletWasabi/Extensions/ExceptionExtensions.cs
WalletWasabi/Extensions/ExceptionExtensions.cs
@@ -48,6 +48,11 @@ namespace System
}
else
{
+ if (ex is HwiException hwiEx && hwiEx.ErrorCode == HwiErrorCode.DeviceConnError)
+ {
+ return "Could not find the hardware wallet.\nMake sure it is connected.";
+ }
+
foreach (KeyValuePair<string, string> pair in Translations)
{
if (trimmed.Contains(pair.Key, StringComparison.InvariantCultureIgnoreCase))

Simplify notification error when device wasn't found