forked from qt-creator/qt-creator
RemoteLinux: It's not a fatal error when ports gathering fails.
Change-Id: If803e1acaaa8164a5177fa5ca227516cc06c577c Reviewed-on: http://codereview.qt.nokia.com/4364 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -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)
|
|||||||
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:
|
||||||
|
Reference in New Issue
Block a user