New: Improved messaging when qBittorrent fails due to host header rejection

(cherry picked from commit 48b4cc5f3ffa0cb8eea6748db9091267216cef4f)
pull/3241/head
Mark McDowall 1 year ago committed by Qstick
parent 28a3e0ba1a
commit f7e0073f76

@ -45,6 +45,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
return true;
}
if (response.StatusCode == HttpStatusCode.Unauthorized)
{
throw new DownloadClientException("Failed to connect to qBittorrent. Check your settings and qBittorrent configuration.", new HttpException(response));
}
if (response.HasHttpError)
{
throw new DownloadClientException("Failed to connect to qBittorrent, check your settings.", new HttpException(response));

Loading…
Cancel
Save