aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-01-24 18:11:19 +0100
committerhjk <[email protected]>2023-01-25 07:04:44 +0000
commit15f33422cb01e590e5912ae70a2220304afff7f3 (patch)
tree9f8983af6472eb2d7bc1dd10b41d70cdcb8c467c /src/plugins
parent2cbe7783ded5d7385400b416f42d164cf6a876a1 (diff)
RemoteLinux: Be a bit more verbose when rsync fails
Change-Id: Ibd049c67b5e6ab3d6526a35762f842819ef2f668 Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: Jarek Kobus <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/remotelinux/rsyncdeploystep.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/remotelinux/rsyncdeploystep.cpp b/src/plugins/remotelinux/rsyncdeploystep.cpp
index 53435afc208..e19ef52d1d8 100644
--- a/src/plugins/remotelinux/rsyncdeploystep.cpp
+++ b/src/plugins/remotelinux/rsyncdeploystep.cpp
@@ -98,12 +98,14 @@ TaskItem RsyncDeployService::transferTask()
};
const auto errorHandler = [this](const FileTransfer &transfer) {
const ProcessResultData result = transfer.resultData();
- if (result.m_error == QProcess::FailedToStart)
+ if (result.m_error == QProcess::FailedToStart) {
emit errorMessage(Tr::tr("rsync failed to start: %1").arg(result.m_errorString));
- else if (result.m_exitStatus == QProcess::CrashExit)
+ } else if (result.m_exitStatus == QProcess::CrashExit) {
emit errorMessage(Tr::tr("rsync crashed."));
- else if (result.m_exitCode != 0)
- emit errorMessage(Tr::tr("rsync failed with exit code %1.").arg(result.m_exitCode));
+ } else if (result.m_exitCode != 0) {
+ emit errorMessage(Tr::tr("rsync failed with exit code %1.").arg(result.m_exitCode)
+ + "\n" + result.m_errorString);
+ }
};
return Transfer(setupHandler, {}, errorHandler);
}