diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-01 23:22:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 00:35:10 +0200 |
| commit | 0c673b9db3dd530fb8fc4303acb4b7ab722bd09e (patch) | |
| tree | 5b968917ddf9b9803ca4c70e139c6f955cc43bea /src/lib | |
| parent | 14d4c7b899324766bfac7bd412f4d567340e7752 (diff) | |
Make an error a bit more informative.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/curl_uploader.cc | 5 |
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; |
