Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8114af0

Browse files
committed
TestDomainReload: print the exception caused by proxy being inaccessible after domain unload
1 parent b69c88b commit 8114af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/embed_tests/TestDomainReload.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ static void RunAssemblyAndUnload(Assembly assembly, string assemblyName)
211211
{
212212
Console.WriteLine($"[Program.Main] The Proxy object is valid ({theProxy}). Unexpected domain unload behavior");
213213
}
214-
catch (Exception)
214+
catch (Exception exception)
215215
{
216-
Console.WriteLine("[Program.Main] The Proxy object is not valid anymore, domain unload complete.");
216+
Console.WriteLine("[Program.Main] The Proxy object is not valid anymore, domain unload complete: " + exception);
217217
}
218218
}
219219

0 commit comments

Comments
 (0)