mirror of https://github.com/Jackett/Jackett
CurlHelper: FailOnError
This commit is contained in:
parent
c3033db8fb
commit
0fd925e945
|
@ -93,6 +93,7 @@ namespace Jackett
|
|||
easy.UserAgent = BrowserUtil.ChromeUserAgent;
|
||||
easy.FollowLocation = false;
|
||||
easy.ConnectTimeout = 20;
|
||||
easy.FailOnError = true;
|
||||
if(curlRequest.Headers != null)
|
||||
{
|
||||
CurlSlist curlHeaders = new CurlSlist();
|
||||
|
@ -162,7 +163,7 @@ namespace Jackett
|
|||
|
||||
if (easy.LastErrorCode != CurlCode.Ok)
|
||||
{
|
||||
var message = "Error " + easy.LastErrorCode.ToString() + " " + easy.LastErrorDescription;
|
||||
var message = "Error " + easy.LastErrorCode.ToString() + " " + easy.LastErrorDescription + " " + easy.ErrorBuffer;
|
||||
if (null != OnErrorMessage)
|
||||
OnErrorMessage(message);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue