Skip to content

Commit 31655ae

Browse files
committed
MtaThread: throwing the original exception itself instead of wrapping with Exception. Otherwise the callsite may fail with logic in catch blocks, because all the exceptions will be wrapped
(cherry picked from commit 5ee8857)
1 parent 9a22ad5 commit 31655ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mono.Debugging.Win32/MtaThread.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void Run (Action ts, int timeout = 15000)
5050
}
5151
}
5252
if (workError != null)
53-
throw new Exception ("Debugger operation failed", workError);
53+
throw workError;
5454
}
5555

5656
static void MtaRunner ()

0 commit comments

Comments
 (0)