Use user-friendly messages for errors
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -120,8 +120,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
DequeueCoin.ThrownExceptions

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -44,8 +44,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
_ = TryRewriteTableAsync();

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
@@ -58,8 +58,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -86,8 +86,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
@@ -340,8 +340,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
return;
}
}
@@ -376,7 +376,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
return;
}
@@ -404,7 +404,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
}
finally
@@ -447,7 +447,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -49,7 +49,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
return;
}
finally

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionBroadcasterViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionBroadcasterViewModel.cs
@@ -153,8 +153,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
}
},
outputScheduler: RxApp.MainThreadScheduler);
@@ -166,7 +166,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -33,8 +33,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerViewModel.cs
@@ -114,8 +114,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}
@@ -157,7 +157,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
}
}

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
@@ -83,8 +83,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
}
}
}

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -159,8 +159,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
SetLoadButtonText();
@@ -544,7 +544,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
}
// Initialization failed.
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
Logger.LogError(ex);
return null;
@@ -648,7 +648,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
catch (Exception ex)
{
// Initialization failed.
- NotificationHelpers.Error(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
if (!(ex is OperationCanceledException))
{
Logger.LogError(ex);

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/RecoverWalletViewModel.cs
@@ -89,8 +89,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
}
catch (Exception ex)
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
}
}
});

MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -132,8 +132,8 @@ namespace WalletWasabi.Gui.ViewModels
.Merge(DisplayAddressOnHw.ThrownExceptions)
.Subscribe(ex =>
{
- NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
+ NotificationHelpers.Error(ex.ToUserFriendlyString());
});
}

Use user-friendly messages for errors