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

Commit

Permalink
Recursively unwrap Single Aggregate Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 24, 2017
1 parent f6ae6af commit adf3521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceStack.Text/TaskExtensions.cs
Expand Up @@ -88,7 +88,7 @@ public static Exception UnwrapIfSingleException(this Exception ex)

if (aex.InnerExceptions != null
&& aex.InnerExceptions.Count == 1)
return aex.InnerExceptions[0];
return aex.InnerExceptions[0].UnwrapIfSingleException();

return aex;
}
Expand Down

0 comments on commit adf3521

Please sign in to comment.