From 4193a1947d39e5e2ab10bb9d196a5fbf9be257dd Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 3 Mar 2024 06:30:18 -0500 Subject: [PATCH] Nasty intermittent error-removing hack --- BeefLibs/corlib/src/Enum.bf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/Enum.bf b/BeefLibs/corlib/src/Enum.bf index dadbcbc4..d1f54112 100644 --- a/BeefLibs/corlib/src/Enum.bf +++ b/BeefLibs/corlib/src/Enum.bf @@ -99,7 +99,12 @@ namespace System [NoShow(true)] public static Result Parse(StringView str, bool ignoreCase = false) where T : enum { - return EnumParser.Parse(str, ignoreCase); + [IgnoreErrors(true)] + { + return EnumParser.Parse(str, ignoreCase); + } +#unwarn + return .Err; } [NoShow(true)]