summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-01 23:22:28 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-09 00:35:10 +0200
commit0c673b9db3dd530fb8fc4303acb4b7ab722bd09e (patch)
tree5b968917ddf9b9803ca4c70e139c6f955cc43bea /src/lib
parent14d4c7b899324766bfac7bd412f4d567340e7752 (diff)
Make an error a bit more informative.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/curl_uploader.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc
index a48f2dc2e..bdbdb098f 100644
--- a/src/lib/curl_uploader.cc
+++ b/src/lib/curl_uploader.cc
@@ -120,7 +120,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;