Use the thrown exception in http timeout handling

This commit is contained in:
Bogdan
2025-05-09 15:57:36 +03:00
parent 5cc4c3f302
commit c8f5099423

View File

@@ -167,7 +167,7 @@ namespace NzbDrone.Common.Http.Dispatchers
}
catch (OperationCanceledException ex) when (cts.IsCancellationRequested)
{
throw new WebException("Http request timed out", ex.InnerException, WebExceptionStatus.Timeout, null);
throw new WebException("Http request timed out", ex, WebExceptionStatus.Timeout, null);
}
}