mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed: Throw more specific error when there's an issue with the curl root certificate bundle.
This commit is contained in:
parent
97cdb6a4a5
commit
4e84d1a17c
@ -112,7 +112,15 @@ public HttpResponse GetResponse(HttpRequest request, CookieContainer cookies)
|
|||||||
|
|
||||||
if (result != CurlCode.Ok)
|
if (result != CurlCode.Ok)
|
||||||
{
|
{
|
||||||
|
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));
|
throw new WebException(string.Format("Curl Error {0} for Url {1}", result, curlEasy.Url));
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user