This commit is contained in:
Regalis11
2024-04-16 18:00:23 +03:00
parent 18af2754db
commit 536346da11
9 changed files with 24 additions and 9 deletions
@@ -2615,7 +2615,7 @@ namespace Barotrauma
/// <summary>
/// Log the error message, but only if an error with the same identifier hasn't been thrown yet during this session.
/// </summary>
public static void ThrowErrorOnce(string identifier, string errorMsg, Exception e)
public static void ThrowErrorOnce(string identifier, string errorMsg, Exception e = null)
{
if (loggedErrorIdentifiers.Contains(identifier)) { return; }
ThrowError(errorMsg, e);