summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-06 13:57:24 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-26 15:39:36 +0000
commitef10bb832a8cbb4e7ff0c55805b1b56f91c8c34f (patch)
treeb3b72648c25ede512c7e826fc32b3a226c0e1648 /desktop
parentd837a11388ca1c29ce9f495832e52e0809b601de (diff)
better error reporting for crash uploader
Change-Id: I6a2b5bd72187de2b646ec0d6fdb5fe20f5d6a2d8 Reviewed-on: https://gerrit.libreoffice.org/22565 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/minidump/minidump_upload.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop/source/minidump/minidump_upload.cxx b/desktop/source/minidump/minidump_upload.cxx
index 968adc060fa7..1b0bf4150792 100644
--- a/desktop/source/minidump/minidump_upload.cxx
+++ b/desktop/source/minidump/minidump_upload.cxx
@@ -131,11 +131,8 @@ bool uploadContent(std::map<std::string, std::string>& parameters)
url.c_str(),
curl_easy_strerror(cc));
#endif
- /*
- * TODO
- if (error_description != nullptr)
- *error_description = curl_easy_strerror(cc);
- */
+
+ const char* error_description = curl_easy_strerror(cc);
if (formpost != nullptr)
{
@@ -146,7 +143,7 @@ bool uploadContent(std::map<std::string, std::string>& parameters)
curl_slist_free_all(headerlist);
}
- std::cerr << response_body << std::endl;
+ std::cerr << response_body << " " << error_description << std::endl;
if( CURLE_OK != cc )