Adjust error levels
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -1051,7 +1051,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
return ErrorDescriptors.Empty;
}
- return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Warning, "Invalid address."));
+ return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Error, "Invalid address."));
}
[ValidateMethod(nameof(ValidateAddress))]

MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -371,7 +371,7 @@ namespace WalletWasabi.Gui.Tabs
return ErrorDescriptors.Empty;
}
- return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Warning, "Invalid privacy level."));
+ return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Error, "Invalid privacy level."));
}
public ErrorDescriptors ValidateDustThreshold(string dustThreshold, bool whiteSpaceOk)
@@ -386,7 +386,7 @@ namespace WalletWasabi.Gui.Tabs
return ErrorDescriptors.Empty;
}
- return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Warning, "Invalid dust threshold."));
+ return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Error, "Invalid dust threshold."));
}
public ErrorDescriptors ValidateEndPoint(string endPoint, int defaultPort, bool whiteSpaceOk)
@@ -401,7 +401,7 @@ namespace WalletWasabi.Gui.Tabs
return ErrorDescriptors.Empty;
}
- return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Warning, "Invalid endpoint."));
+ return new ErrorDescriptors(new ErrorDescriptor(ErrorSeverity.Error, "Invalid endpoint."));
}
#endregion Validation

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
@@ -103,12 +103,12 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
if (PasswordHelper.IsTrimable(password, out _))
{
- errors.Add(new ErrorDescriptor(ErrorSeverity.Warning, "Leading and trailing white spaces are not allowed!"));
+ errors.Add(new ErrorDescriptor(ErrorSeverity.Error, "Leading and trailing white spaces are not allowed!"));
}
if (PasswordHelper.IsTooLong(password, out _))
{
- errors.Add(new ErrorDescriptor(ErrorSeverity.Warning, PasswordHelper.PasswordTooLongMessage));
+ errors.Add(new ErrorDescriptor(ErrorSeverity.Error, PasswordHelper.PasswordTooLongMessage));
}
return errors;

MODIFY
WalletWasabi.Tests/UnitTests/ValidateMethodTests.cs
WalletWasabi.Tests/UnitTests/ValidateMethodTests.cs
@@ -44,7 +44,7 @@ namespace WalletWasabi.Tests.UnitTests
new ErrorDescriptor(ErrorSeverity.Default,"My default error descriptor"),
new ErrorDescriptor(ErrorSeverity.Info,"My info error descriptor"),
new ErrorDescriptor(ErrorSeverity.Warning,"My warning error descriptor"),
- new ErrorDescriptor(ErrorSeverity.Error,"My error error descriptor")
+ new ErrorDescriptor(ErrorSeverity.Error,"My error descriptor")
};
// Constructor tests

MODIFY
WalletWasabi/Helpers/PasswordHelper.cs
WalletWasabi/Helpers/PasswordHelper.cs
@@ -155,7 +155,7 @@ namespace WalletWasabi.Helpers
if (IsTooLong(password, out _))
{
- errors.Add(new ErrorDescriptor(ErrorSeverity.Warning, PasswordTooLongMessage));
+ errors.Add(new ErrorDescriptor(ErrorSeverity.Error, PasswordTooLongMessage));
}
return errors;

Adjust error levels