Skip to content

Commit 36eceb1

Browse files
committed
fix: convert ex to string, not the ToString method
1 parent bfbd325 commit 36eceb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deadlock-dotnet-sdk/Domain/SafeHandleEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private bool GetIsClosed()
116116
}
117117
catch (Exception ex)
118118
{
119-
Console.Error.WriteLine($"GetIsClosed failed; {ex.ToString}");
119+
Console.Error.WriteLine($"GetIsClosed failed; {ex}");
120120
Trace.TraceError(ex.ToString());
121121
}
122122
return false;

0 commit comments

Comments
 (0)