From 5abfb9ab5749676bc41e9babe3f734dc6e9a12be Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 30 Mar 2010 14:15:07 +0200 Subject: trivial: better HTTP/curl error reporting Signed-off-by: Denys Vlasenko --- lib/Utils/abrt_curl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Utils/abrt_curl.cpp') diff --git a/lib/Utils/abrt_curl.cpp b/lib/Utils/abrt_curl.cpp index 6dc8582f..edc27124 100644 --- a/lib/Utils/abrt_curl.cpp +++ b/lib/Utils/abrt_curl.cpp @@ -135,8 +135,12 @@ curl_post(curl_post_state_t* state, const char* url, const char* data) curl_err = curl_easy_perform(handle); if (curl_err) { + VERB2 log("curl_easy_perform: error %d", (int)curl_err); if (state->flags & ABRT_CURL_POST_WANT_ERROR_MSG) + { state->curl_error_msg = check_curl_error(curl_err, "curl_easy_perform"); + VERB3 log("curl_easy_perform: error_msg: %s", state->curl_error_msg); + } goto ret; } -- cgit