refactor: Address Resharper analysis warnings

pull/286/head
Robert Dailey 6 months ago
parent e159aff289
commit 51553b2eaf

@ -8,7 +8,7 @@ public class FlurlHttpExceptionHandler(ILogger log) : IFlurlHttpExceptionHandler
[SuppressMessage("Design", "CA1031:Do not catch general exception types")]
public async Task ProcessServiceErrorMessages(IServiceErrorMessageExtractor extractor)
{
if (extractor.ErrorMessage.Contains("task was canceled"))
if (extractor.ExceptionMessage.Contains("task was canceled"))
{
log.Error("Reason: User canceled the operation");
return;

@ -5,5 +5,5 @@ public interface IServiceErrorMessageExtractor
Task<string> GetErrorMessage();
int? HttpStatusCode { get; }
HttpRequestError? HttpError { get; }
string ErrorMessage { get; }
string ExceptionMessage { get; }
}

@ -24,5 +24,5 @@ public class ServiceErrorMessageExtractor(FlurlHttpException e) : IServiceErrorM
public int? HttpStatusCode => e.StatusCode;
public string ErrorMessage => e.Message;
public string ExceptionMessage => e.Message;
}

Loading…
Cancel
Save