Rethrow more exceptions when EXCEPTION_TOLERANCE is false (#6238)

* Rethrow more exceptions when EXCEPTION_TOLERANCE is false

* A

* update test

* Revert "update test"

This reverts commit 37f4da67fc.

* actually we probably want to know if Deleting an exception throwing entity throws another exception
This commit is contained in:
Leon Friedrich
2025-10-21 07:51:24 +13:00
committed by GitHub
parent 4b04081749
commit 665294bee8
4 changed files with 27 additions and 0 deletions

View File

@@ -87,6 +87,9 @@ internal sealed partial class PvsSystem
catch (Exception e)
{
_pvs.Log.Log(LogLevel.Error, e, $"Caught exception while processing pvs-leave messages.");
#if !EXCEPTION_TOLERANCE
throw;
#endif
}
}
}

View File

@@ -48,6 +48,9 @@ internal sealed partial class PvsSystem
{
var source = i >= 0 ? _sessions[i].Session.ToString() : "replays";
Log.Log(LogLevel.Error, e, $"Caught exception while serializing game state for {source}.");
#if !EXCEPTION_TOLERANCE
throw;
#endif
}
}