Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 8f77ecf

Browse files
sywhangjkotas
authored andcommitted
Add back TraceFormat.Normal to avoid additional newlines from being added
1 parent 5816a42 commit 8f77ecf

File tree

1 file changed

+2
-2
lines changed
  • src/mscorlib/shared/System/Diagnostics

1 file changed

+2
-2
lines changed

src/mscorlib/shared/System/Diagnostics/Debug.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static void Assert(bool condition, string message, string detailMessage)
9595
string stackTrace;
9696
try
9797
{
98-
stackTrace = new StackTrace(0, true).ToString();
98+
stackTrace = new StackTrace(0, true).ToString(System.Diagnostics.StackTrace.TraceFormat.Normal);
9999
}
100100
catch
101101
{
@@ -113,7 +113,7 @@ internal static void ContractFailure(bool condition, string message, string deta
113113
string stackTrace;
114114
try
115115
{
116-
stackTrace = new StackTrace(0, true).ToString();
116+
stackTrace = new StackTrace(0, true).ToString(System.Diagnostics.StackTrace.TraceFormat.Normal);
117117
}
118118
catch
119119
{

0 commit comments

Comments
 (0)