diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/remotelinux/rsyncdeploystep.cpp | 10 |
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); } |