summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-12 17:42:45 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-04-13 00:30:21 +0200
commit344a00b2a4c358e3c0a66f0c163c874a5ebdcc08 (patch)
tree5ee8046854cd130829711d539d63771f2cb8930a
parent93afc6258d67366d56bbd2f3358658ef390d6bfb (diff)
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 <stephan.bergmann@allotropia.de> (cherry picked from commit 324401ced3c2234903f9e0430a0380be968b492b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165941 Tested-by: allotropia jenkins <jenkins@allotropia.de>
-rw-r--r--desktop/source/minidump/minidump.cxx6
1 files changed, 6 insertions, 0 deletions
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;
}