Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit adf3521

Browse files
committed
Recursively unwrap Single Aggregate Exceptions
1 parent f6ae6af commit adf3521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/TaskExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static Exception UnwrapIfSingleException(this Exception ex)
8888

8989
if (aex.InnerExceptions != null
9090
&& aex.InnerExceptions.Count == 1)
91-
return aex.InnerExceptions[0];
91+
return aex.InnerExceptions[0].UnwrapIfSingleException();
9292

9393
return aex;
9494
}

0 commit comments

Comments
 (0)