Skip to content

Commit 8b17f6f

Browse files
add exception msg to stackTrace (#187)
1 parent d0d1f68 commit 8b17f6f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Sdk/Speckle.Connectors.Utils/Conversion/ReportResult.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ public SendConversionResult(
3535
ResultType = result?.speckle_type;
3636
if (exception is not null)
3737
{
38-
Error = new ErrorWrapper() { Message = exception.Message, StackTrace = exception.StackTrace };
38+
Error = new ErrorWrapper()
39+
{
40+
Message = exception.Message,
41+
StackTrace = $"{exception.Message}\n{exception.StackTrace}"
42+
};
3943
}
4044
}
4145
}
@@ -57,7 +61,11 @@ public ReceiveConversionResult(
5761
ResultType = resultType;
5862
if (exception is not null)
5963
{
60-
Error = new ErrorWrapper() { Message = exception.Message, StackTrace = exception.StackTrace };
64+
Error = new ErrorWrapper()
65+
{
66+
Message = exception.Message,
67+
StackTrace = $"{exception.Message}\n{exception.StackTrace}"
68+
};
6169
}
6270
}
6371
}

0 commit comments

Comments
 (0)