From 4e84d1a17cf0d02ace7d83523462c0f81f3c3a49 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 2 Feb 2016 22:04:40 +0100 Subject: [PATCH] Fixed: Throw more specific error when there's an issue with the curl root certificate bundle. --- .../Http/Dispatchers/CurlHttpDispatcher.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Http/Dispatchers/CurlHttpDispatcher.cs b/src/NzbDrone.Common/Http/Dispatchers/CurlHttpDispatcher.cs index 419f6fb2c..35a4dfc54 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/CurlHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/CurlHttpDispatcher.cs @@ -112,7 +112,15 @@ namespace NzbDrone.Common.Http.Dispatchers if (result != CurlCode.Ok) { - throw new WebException(string.Format("Curl Error {0} for Url {1}", result, curlEasy.Url)); + switch (result) + { + case CurlCode.SslCaCert: + case (CurlCode)77: + throw new WebException(string.Format("Curl Error {0} for Url {1}, issues with your operating system SSL Root Certificate Bundle (ca-bundle).", result, curlEasy.Url)); + default: + throw new WebException(string.Format("Curl Error {0} for Url {1}", result, curlEasy.Url)); + + } } }