mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
Fixed: Report certificate validation failures when configuring Plex Media Server connection
Closes #6797 (cherry picked from commit ec62884649f7af5f0a29346741754590e6de99ce)
This commit is contained in:
@@ -195,7 +195,12 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
throw new PlexException("Unable to connect to Plex Media Server", ex);
|
||||
if (ex.Status == WebExceptionStatus.TrustFailure)
|
||||
{
|
||||
throw new PlexException("Unable to connect to Plex Media Server, certificate validation failed.", ex);
|
||||
}
|
||||
|
||||
throw new PlexException($"Unable to connect to Plex Media Server, {ex.Message}", ex);
|
||||
}
|
||||
|
||||
return response.Content;
|
||||
|
||||
Reference in New Issue
Block a user