desktop/source/minidump/minidump.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 6a4031ec8338b005682493f65744ebcbc30a5f81 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Fri Apr 12 17:42:45 2024 +0200 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Fri Apr 12 23:36:48 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 <stephan.bergm...@allotropia.de> diff --git a/desktop/source/minidump/minidump.cxx b/desktop/source/minidump/minidump.cxx index 0a31fff6f285..90d23f51acf3 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; }