Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
targetFramework: netstandard2.1;net47
useCompareNetObjects: "true"
equatable: true
throwOnAnyError: true
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ private async Task<ApiResponse<T>> ExecClientAsync<T>(Func<RestClient, Task<Rest
Proxy = configuration.Proxy,
UserAgent = configuration.UserAgent,
UseDefaultCredentials = configuration.UseDefaultCredentials,
RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback
RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback,
ThrowOnAnyError = true
};
setOptions(clientOptions);

Expand Down Expand Up @@ -565,10 +566,7 @@ private async Task<RestResponse<T>> DeserializeRestResponseFromPolicyAsync<T>(Re
}
else
{
return new RestResponse<T>(request)
{
ErrorException = policyResult.FinalException
};
throw policyResult.FinalException ?? new InvalidOperationException("The retry policy failed without an exception.");
}
}

Expand Down
Loading