Add user friendly notification message
MODIFY
WalletWasabi/Extensions/ExceptionExtensions.cs
WalletWasabi/Extensions/ExceptionExtensions.cs
@@ -51,10 +51,17 @@ namespace System
}
else
{
- if (ex is HwiException hwiEx && hwiEx.ErrorCode == HwiErrorCode.DeviceConnError)
+ if (ex is HwiException hwiEx)
+ {
+ if (hwiEx.ErrorCode == HwiErrorCode.DeviceConnError)
{
return "Could not find the hardware wallet.\nMake sure it is connected.";
}
+ else if (hwiEx.ErrorCode == HwiErrorCode.ActionCanceled)
+ {
+ return "The transaction was canceled on the device.";
+ }
+ }
foreach (KeyValuePair<string, string> pair in Translations)
{

Add user friendly notification message