From 4a0449983cd40adc630fe6a28984abaf6e508bde Mon Sep 17 00:00:00 2001 From: Eric Bowden Date: Fri, 1 May 2026 10:47:46 -0500 Subject: [PATCH] Preserve underlying stack trace on AeronArchive.AsyncConnect constructor failure --- src/Adaptive.Archiver/AeronArchive.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Adaptive.Archiver/AeronArchive.cs b/src/Adaptive.Archiver/AeronArchive.cs index cf6f4d7..b53eddd 100644 --- a/src/Adaptive.Archiver/AeronArchive.cs +++ b/src/Adaptive.Archiver/AeronArchive.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime.ExceptionServices; using System.Threading; using Adaptive.Aeron; using Adaptive.Aeron.Exceptions; @@ -3499,7 +3500,7 @@ internal AsyncConnect(Context ctx) catch (Exception ex) { Dispose(); - throw ex; + ExceptionDispatchInfo.Capture(ex).Throw(); } }