Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplicated message in WebException (dotnet/corefx#42195)
In a bunch of places, including in HttpClient, when a new exception instance is created to wrap an inner exception, the inner exception's message is then used as the message for the wrapping exception. WebRequest.CreateCompatibleException is taking such an HttpRequestException and concatenating the outer and inner exception's messages, which means it's often duplicating the exact same message twice. Since we're including the exception as the inner exception, there's no need for such duplication... we can just follow suit and use the outer exception's message without concatenation. Commit migrated from dotnet/corefx@d7fbeca
- Loading branch information