diff --git a/.ci/code/Serialiser_Test/Verify/ObjectsToFromJson.cs b/.ci/code/Serialiser_Test/Verify/ObjectsToFromJson.cs index 37719386b..83ac4e2f5 100644 --- a/.ci/code/Serialiser_Test/Verify/ObjectsToFromJson.cs +++ b/.ci/code/Serialiser_Test/Verify/ObjectsToFromJson.cs @@ -140,8 +140,15 @@ public static TestResult ObjectToFromJson(Type type) } catch (Exception e) { - BH.Engine.Base.Compute.RecordError(e, $"Failed to compare the objcets of type {type.Name}"); - isEqual = false; + BH.Engine.Base.Compute.RecordWarning(e, $"Crashed when trying to compare objects."); + + return new TestResult + { + Description = typeDescription, + Status = TestStatus.Warning, + Message = $"Warning: Failed to compare objects of type {typeDescription}.", + Information = Engine.Base.Query.CurrentEvents().Select(x => x.ToEventMessage()).ToList() + }; } if (!isEqual)