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

Commit 22669ca

Browse files
sywhangjkotas
authored andcommitted
exclude errorSource from call to Environment.FailFast on Unix
Signed-off-by: dotnet-bot <[email protected]>
1 parent 414e5d0 commit 22669ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ private static void ShowDialog(string stackTrace, string message, string detailM
2121
// In Core, we do not show a dialog.
2222
// Fail in order to avoid anyone catching an exception and masking
2323
// an assert failure.
24+
25+
// We can safely ignore errorSource since it's a CoreCLR specific argument for distinguishing calls from Debug.Assert and Environment.FailFast
2426
var ex = new DebugAssertException(message, detailMessage, stackTrace);
25-
Environment.FailFast(ex.Message, ex, errorSource);
27+
Environment.FailFast(ex.Message, ex);
2628
}
2729
}
2830

0 commit comments

Comments
 (0)