cURL: put error description into the status message.
[citadel.git] / citadel / modules / eventclient / serv_eventclient.c
index d0951eea8949352f83938672c83802694ed2a776..79b0eeb303d15dbba8bb2e6c17572574b8f9d308 100644 (file)
@@ -161,9 +161,10 @@ gotstatus(int nnrun)
                                EVCURL_syslog(LOG_ERR,
                                              "error description: %s\n",
                                              IO->HttpReq.errdesc);
+                               IO->HttpReq.CurlError = curl_easy_strerror(sta);
                                EVCURL_syslog(LOG_ERR,
                                              "error performing request: %s\n",
-                                             curl_easy_strerror(sta));
+                                             IO->HttpReq.CurlError);
                                if (sta == CURLE_OPERATION_TIMEDOUT)
                                {
                                        IO->SendBuf.fd = 0;