diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-01 23:22:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-06-03 22:46:26 +0200 |
| commit | 4c5691d02a8d35c2cff5c4fc490682e493d36eba (patch) | |
| tree | 16c04ad196b9ab619151cb120de3fa989e76f815 | |
| parent | 80aea2d8e62ab14a8e6727254158f5de53eb363b (diff) | |
Make an error a bit more informative.
| -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 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; |
