Skip to content

Commit 5381c41

Browse files
author
Guy Fankam
committed
Clarify handler
1 parent f1c1231 commit 5381c41

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/code/extractor/Gateway.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ private static ListGateways GetListGateways(IServiceProvider provider)
8787
var dtoOption = await uri.TryGetDto(pipeline, cancellationToken);
8888
return dtoOption.Map(dto => (uri.Name, dto));
8989
})
90+
// Handle scenarios where the SKU doesn't support gateways
9091
.Catch((HttpRequestException exception) =>
9192
exception.StatusCode == HttpStatusCode.InternalServerError
9293
&& exception.Message.Contains("Request processing failed", StringComparison.OrdinalIgnoreCase)

0 commit comments

Comments
 (0)