Skip to content
Snippets Groups Projects
Commit 5288267b authored by Christian Kandeler's avatar Christian Kandeler
Browse files

RemoteLinux: It's not a fatal error when ports gathering fails.

Change-Id: If803e1acaaa8164a5177fa5ca227516cc06c577c
Reviewed-on: http://codereview.qt.nokia.com/4364


Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 7667e6d7
No related branches found
No related tags found
No related merge requests found
...@@ -333,8 +333,14 @@ void AbstractRemoteLinuxApplicationRunner::emitError(const QString &errorMsg, bo ...@@ -333,8 +333,14 @@ void AbstractRemoteLinuxApplicationRunner::emitError(const QString &errorMsg, bo
void AbstractRemoteLinuxApplicationRunner::handlePortsGathererError(const QString &errorMsg) void AbstractRemoteLinuxApplicationRunner::handlePortsGathererError(const QString &errorMsg)
{ {
if (m_d->state != Inactive) if (m_d->state != Inactive) {
emitError(errorMsg); if (connection()->errorState() != SshNoError) {
emitError(errorMsg);
} else {
emit reportProgress(tr("Gathering ports failed: %1\nContinuing anyway.").arg(errorMsg));
handleUsedPortsAvailable();
}
}
} }
void AbstractRemoteLinuxApplicationRunner::handleUsedPortsAvailable() void AbstractRemoteLinuxApplicationRunner::handleUsedPortsAvailable()
......
...@@ -161,8 +161,8 @@ void RemoteLinuxUsedPortsGatherer::handleProcessClosed(int exitStatus) ...@@ -161,8 +161,8 @@ void RemoteLinuxUsedPortsGatherer::handleProcessClosed(int exitStatus)
if (m_d->procRunner->process()->exitCode() == 0) { if (m_d->procRunner->process()->exitCode() == 0) {
setupUsedPorts(); setupUsedPorts();
} else { } else {
errMsg = tr("Remote process failed: %1") errMsg = tr("Remote process failed; exit code was %1.")
.arg(m_d->procRunner->process()->errorString()); .arg(m_d->procRunner->process()->exitCode());
} }
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment