From 4c5691d02a8d35c2cff5c4fc490682e493d36eba Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 May 2025 23:22:28 +0200 Subject: Make an error a bit more informative. --- src/lib/curl_uploader.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc index a8b6ece6d..3edb46429 100644 --- a/src/lib/curl_uploader.cc +++ b/src/lib/curl_uploader.cc @@ -110,7 +110,10 @@ CurlUploader::upload_file(boost::filesystem::path from, boost::filesystem::path auto const r = curl_easy_perform(_curl); if (r != CURLE_OK) { - throw NetworkError(String::compose(_("Could not write to remote file (%1)"), curl_easy_strerror(r))); + throw NetworkError( + String::compose(_("Could not write to remote file %1"), to.generic_string()), + string(curl_easy_strerror(r)) + ); } _file = nullptr; -- cgit v1.2.3