New: Improved messaging when qBittorrent fails due to host header rejection
This commit is contained in:
parent
396406b217
commit
48b4cc5f3f
|
@ -46,6 +46,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||||
return true;
|
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)
|
if (response.HasHttpError)
|
||||||
{
|
{
|
||||||
throw new DownloadClientException("Failed to connect to qBittorrent, check your settings.", new HttpException(response));
|
throw new DownloadClientException("Failed to connect to qBittorrent, check your settings.", new HttpException(response));
|
||||||
|
|
Loading…
Reference in New Issue