From 0fd925e945dd4071624620f0e9bda5dc986c3e65 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sat, 10 Dec 2016 12:54:14 +0100 Subject: [PATCH] CurlHelper: FailOnError --- src/Jackett/CurlHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jackett/CurlHelper.cs b/src/Jackett/CurlHelper.cs index cdb91b588..6c84885f9 100644 --- a/src/Jackett/CurlHelper.cs +++ b/src/Jackett/CurlHelper.cs @@ -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