use user friendly messages
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/DetectedHardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/HardwareWallet/DetectedHardwareWalletViewModel.cs
@@ -52,7 +52,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet.HardwareWallet
catch(Exception ex)
{
Logger.LogError(ex);
- await ShowErrorAsync(ex.Message, "Error occured during adding your wallet.");
+ await ShowErrorAsync(ex.ToUserFriendlyString(), "Error occured during adding your wallet.");
Navigate().Back();
}

MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/ImportWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/ImportWalletViewModel.cs
@@ -66,7 +66,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
catch (Exception ex)
{
Logger.LogError(ex);
- await ShowErrorAsync(ex.Message, "The wallet file was not valid or compatible with Wasabi.");
+ await ShowErrorAsync(ex.ToUserFriendlyString(), "The wallet file was not valid or compatible with Wasabi.");
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
@@ -91,7 +91,7 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
catch (Exception ex)
{
Logger.LogError(ex);
- await ShowErrorAsync(ex.Message, "It was not possible to broadcast the transaction.");
+ await ShowErrorAsync(ex.ToUserFriendlyString(), "It was not possible to broadcast the transaction.");
}
Navigate().Back();

MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/LoadTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/LoadTransactionViewModel.cs
@@ -41,7 +41,7 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
catch (Exception ex)
{
Logger.LogError(ex);
- await ShowErrorAsync(ex.Message, "It was not possible to load the transaction.");
+ await ShowErrorAsync(ex.ToUserFriendlyString(), "It was not possible to load the transaction.");
}
},
outputScheduler: RxApp.MainThreadScheduler);
@@ -74,7 +74,7 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
catch (Exception ex)
{
Logger.LogError(ex);
- await ShowErrorAsync(ex.Message, "It was not possible to paste the transaction.");
+ await ShowErrorAsync(ex.ToUserFriendlyString(), "It was not possible to paste the transaction.");
}
});
}

use user friendly messages