diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-08 00:31:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 01:16:39 +0200 |
| commit | 0cd2c51138a4e5ebc3fc6e7fb4c5435a79a9f69c (patch) | |
| tree | d8f427e93f685afb542057f854fb4a9caa85c94e /src/lib/scp_uploader.cc | |
| parent | afb42c9639d754a6e3520695c04c5b436c5b749b (diff) | |
Better handling / presentation of network errors during uploads.uploader-take2
Diffstat (limited to 'src/lib/scp_uploader.cc')
| -rw-r--r-- | src/lib/scp_uploader.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/scp_uploader.cc b/src/lib/scp_uploader.cc index 2735f0155..a81ddbc69 100644 --- a/src/lib/scp_uploader.cc +++ b/src/lib/scp_uploader.cc @@ -135,7 +135,10 @@ LIBDCP_DISABLE_WARNINGS int const r = ssh_scp_write(_scp, buffer.data(), t); LIBDCP_ENABLE_WARNINGS if (r != SSH_OK) { - throw NetworkError(String::compose(_("Could not write to remote file (%1)"), ssh_get_error(_session))); + throw NetworkError( + _("Could not write to remote file"), + string(ssh_get_error(_session)) + ); } to_do -= t; transferred += t; |
