1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Nasty intermittent error-removing hack

This commit is contained in:
Brian Fiete 2024-03-03 06:30:18 -05:00
parent ae6a2b7ca4
commit 4193a1947d

View file

@ -99,7 +99,12 @@ namespace System
[NoShow(true)]
public static Result<T> Parse<T>(StringView str, bool ignoreCase = false) where T : enum
{
return EnumParser<T>.Parse(str, ignoreCase);
[IgnoreErrors(true)]
{
return EnumParser<T>.Parse(str, ignoreCase);
}
#unwarn
return .Err;
}
[NoShow(true)]