desktop/source/minidump/minidump.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 344a00b2a4c358e3c0a66f0c163c874a5ebdcc08
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Fri Apr 12 17:42:45 2024 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Sat Apr 13 00:30:21 2024 +0200

    At least capture (English-only) cURL error when something goes wrong
    
    ...so that svx/source/dialog/crashreportdlg.cxx can at least present that,
    instead of confusingly being silent about the error
    
    Change-Id: I5e8af5f8df4cbcad84f8b60c2de4c55621b28890
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166037
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>
    (cherry picked from commit 324401ced3c2234903f9e0430a0380be968b492b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165941
    Tested-by: allotropia jenkins <[email protected]>

diff --git a/desktop/source/minidump/minidump.cxx 
b/desktop/source/minidump/minidump.cxx
index 8b96d2ff37f1..e1f3eb4c5a94 100644
--- a/desktop/source/minidump/minidump.cxx
+++ b/desktop/source/minidump/minidump.cxx
@@ -184,7 +184,13 @@ static bool uploadContent(std::map<std::string, 
std::string>& parameters, std::s
     response = response_body;
 
     if( CURLE_OK != cc )
+    {
+        if (response.empty())
+        {
+            response = curl_easy_strerror(cc);
+        }
         return false;
+    }
 
     return true;
 }

Reply via email to