Skip to content

Commit 5227e6d

Browse files
[FSSDK-11150] review update 2
1 parent 6d4c1c0 commit 5227e6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

OptimizelySDK/Cmab/DefaultCmabClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,16 @@ private async Task<string> DoFetchOnceAsync(string url, CmabRequest request, Tim
151151
_logger.Log(LogLevel.ERROR, CmabConstants.ErrorInvalidResponse);
152152
throw new CmabInvalidResponseException(ex.Message);
153153
}
154+
catch(CmabInvalidResponseException)
155+
{
156+
throw;
157+
}
154158
catch (HttpRequestException ex)
155159
{
156160
_logger.Log(LogLevel.ERROR, string.Format(CmabConstants.ErrorFetchFailedFmt, ex.Message));
157161
throw new CmabFetchException(string.Format(CmabConstants.ErrorFetchFailedFmt, ex.Message));
158162
}
159-
catch (Exception ex) when (!(ex is CmabInvalidResponseException))
163+
catch (Exception ex)
160164
{
161165
_logger.Log(LogLevel.ERROR, string.Format(CmabConstants.ErrorFetchFailedFmt, ex.Message));
162166
throw new CmabFetchException(string.Format(CmabConstants.ErrorFetchFailedFmt, ex.Message));

0 commit comments

Comments
 (0)