mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fixed: Show more information in UI when testing SAB fails in some cases
This commit is contained in:
parent
e2d1b256e4
commit
2f3888f5ed
5 changed files with 34 additions and 11 deletions
|
@ -375,8 +375,11 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex, "Unable to authenticate");
|
||||
return new ValidationFailure("Host", "Unable to connect to SABnzbd");
|
||||
_logger.Error(ex, ex.Message);
|
||||
return new NzbDroneValidationFailure("Host", "Unable to connect to SABnzbd")
|
||||
{
|
||||
DetailedDescription = ex.Message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -186,11 +186,16 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
|||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new DownloadClientException("Unable to connect to SABnzbd, please check your settings", ex);
|
||||
throw new DownloadClientException("Unable to connect to SABnzbd, {0}", ex, ex.Message);
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
throw new DownloadClientUnavailableException("Unable to connect to SABnzbd, please check your settings", ex);
|
||||
if (ex.Status == WebExceptionStatus.TrustFailure)
|
||||
{
|
||||
throw new DownloadClientUnavailableException("Unable to connect to SABnzbd, certificate validation failed.", ex);
|
||||
}
|
||||
|
||||
throw new DownloadClientUnavailableException("Unable to connect to SABnzbd, {0}", ex, ex.Message);
|
||||
}
|
||||
|
||||
CheckForError(response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue