Skip to content

Commit 8244415

Browse files
committed
Optimise setup within ExceptionUtilities.GetStackTraceAtPrefix().
1 parent 6c5bbaa commit 8244415

20 files changed

Lines changed: 1 addition & 1 deletion

src/PSADT/PSADT.Interop/Utilities/ExceptionUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private static string GetStackTraceAtPrefix()
285285
{
286286
throw new InvalidOperationException();
287287
}
288-
catch (Exception ex) when (ex.Message is not null)
288+
catch (InvalidOperationException ex)
289289
{
290290
if (ex.StackTrace is string trace)
291291
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)