Kaydet (Commit) ef10bb83 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

better error reporting for crash uploader

Change-Id: I6a2b5bd72187de2b646ec0d6fdb5fe20f5d6a2d8
Reviewed-on: https://gerrit.libreoffice.org/22565Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst d837a113
...@@ -131,11 +131,8 @@ bool uploadContent(std::map<std::string, std::string>& parameters) ...@@ -131,11 +131,8 @@ bool uploadContent(std::map<std::string, std::string>& parameters)
url.c_str(), url.c_str(),
curl_easy_strerror(cc)); curl_easy_strerror(cc));
#endif #endif
/*
* TODO const char* error_description = curl_easy_strerror(cc);
if (error_description != nullptr)
*error_description = curl_easy_strerror(cc);
*/
if (formpost != nullptr) if (formpost != nullptr)
{ {
...@@ -146,7 +143,7 @@ bool uploadContent(std::map<std::string, std::string>& parameters) ...@@ -146,7 +143,7 @@ bool uploadContent(std::map<std::string, std::string>& parameters)
curl_slist_free_all(headerlist); curl_slist_free_all(headerlist);
} }
std::cerr << response_body << std::endl; std::cerr << response_body << " " << error_description << std::endl;
if( CURLE_OK != cc ) if( CURLE_OK != cc )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment