mirror of
https://github.com/Readarr/Readarr
synced 2025-12-13 20:04:33 +01:00
New: Improved messaging when qBittorrent fails due to host header rejection
Closes #2099 Closes #2100 (cherry picked from commit 48b4cc5f3ffa0cb8eea6748db9091267216cef4f)
This commit is contained in:
parent
95dbfb6e4a
commit
13fd31b67d
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ public bool IsApiSupported(QBittorrentSettings settings)
|
|||
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…
Reference in a new issue