RemoteLinux: Display copy errors

Change-Id: I6f75af7b4700e26d43b605bee014b4768224caf6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-28 13:54:27 +02:00
parent 746f0f93be
commit db38eef811

View File

@@ -1522,8 +1522,9 @@ private:
.arg(m_currentIndex) .arg(m_currentIndex)
.arg(m_fileCount) .arg(m_fileCount)
.arg(source.toUserOutput(), target.toUserOutput())); .arg(source.toUserOutput(), target.toUserOutput()));
if (!source.copyFile(target)) { expected_str<void> copyResult = source.copyFile(target);
result.m_errorString = Tr::tr("Failed."); if (!copyResult) {
result.m_errorString = Tr::tr("Failed: %1").arg(copyResult.error());
result.m_exitCode = -1; // Random pick result.m_exitCode = -1; // Random pick
emit done(result); emit done(result);
return; return;