diff --git a/src/Speckle.Sdk/Serialisation/V2/Receive/ObjectLoader.cs b/src/Speckle.Sdk/Serialisation/V2/Receive/ObjectLoader.cs index 0ff0abae..8485ed77 100644 --- a/src/Speckle.Sdk/Serialisation/V2/Receive/ObjectLoader.cs +++ b/src/Speckle.Sdk/Serialisation/V2/Receive/ObjectLoader.cs @@ -171,7 +171,7 @@ public sealed class ObjectLoader( cancellationToken.ThrowIfCancellationRequested(); if (Exception is not null) { - throw new SpeckleException("Error while loading", Exception); + throw new SpeckleException($"Error while loading: {Exception.Message}", Exception); } } } diff --git a/src/Speckle.Sdk/Serialisation/V2/Send/SerializeProcess.cs b/src/Speckle.Sdk/Serialisation/V2/Send/SerializeProcess.cs index d8d56c71..16aeef10 100644 --- a/src/Speckle.Sdk/Serialisation/V2/Send/SerializeProcess.cs +++ b/src/Speckle.Sdk/Serialisation/V2/Send/SerializeProcess.cs @@ -97,7 +97,7 @@ public sealed class SerializeProcess( //order here matters...null with cancellation means a user did it, otherwise it's a real Exception if (objectSaver.Exception is not null) { - throw new SpeckleException("Error while sending", objectSaver.Exception); + throw new SpeckleException($"Error while sending: {objectSaver.Exception.Message}", objectSaver.Exception); } _processSource.Token.ThrowIfCancellationRequested(); } diff --git a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache.verified.json b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache.verified.json index 08411c1d..d158cceb 100644 --- a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache.verified.json +++ b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache.verified.json @@ -6,6 +6,6 @@ "Message": "The method or operation is not implemented.", "Type": "NotImplementedException" }, - "Message": "Error while sending", + "Message": "Error while sending: The method or operation is not implemented.", "Type": "SpeckleException" } diff --git a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache_ExceptionsAfter_10.verified.json b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache_ExceptionsAfter_10.verified.json index 64414fee..d1c887c7 100644 --- a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache_ExceptionsAfter_10.verified.json +++ b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Cache_ExceptionsAfter_10.verified.json @@ -6,6 +6,6 @@ "Message": "Count exceeded", "Type": "Exception" }, - "Message": "Error while sending", + "Message": "Error while sending: Count exceeded", "Type": "SpeckleException" } diff --git a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Receive_Cache_fileName=False.verified.json b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Receive_Cache_fileName=False.verified.json index e0dd61d5..6a0b4d70 100644 --- a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Receive_Cache_fileName=False.verified.json +++ b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Receive_Cache_fileName=False.verified.json @@ -6,6 +6,6 @@ "Message": "The method or operation is not implemented.", "Type": "NotImplementedException" }, - "Message": "Error while loading", + "Message": "Error while loading: The method or operation is not implemented.", "Type": "SpeckleException" } diff --git a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Upload.verified.json b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Upload.verified.json index 08411c1d..d158cceb 100644 --- a/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Upload.verified.json +++ b/tests/Speckle.Sdk.Serialization.Tests/ExceptionTests.Test_Exceptions_Upload.verified.json @@ -6,6 +6,6 @@ "Message": "The method or operation is not implemented.", "Type": "NotImplementedException" }, - "Message": "Error while sending", + "Message": "Error while sending: The method or operation is not implemented.", "Type": "SpeckleException" }