forked from qt-creator/qt-creator
RemoteLinux: Display copy errors
Change-Id: I6f75af7b4700e26d43b605bee014b4768224caf6 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user