desktop/source/minidump/minidump_upload.cxx |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

New commits:
commit ef10bb832a8cbb4e7ff0c55805b1b56f91c8c34f
Author: Markus Mohrhard <[email protected]>
Date:   Wed Jan 6 13:57:24 2016 +0100

    better error reporting for crash uploader
    
    Change-Id: I6a2b5bd72187de2b646ec0d6fdb5fe20f5d6a2d8
    Reviewed-on: https://gerrit.libreoffice.org/22565
    Reviewed-by: Markus Mohrhard <[email protected]>
    Tested-by: Markus Mohrhard <[email protected]>

diff --git a/desktop/source/minidump/minidump_upload.cxx 
b/desktop/source/minidump/minidump_upload.cxx
index 968adc0..1b0bf41 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 )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to