Display the failing ports when the connection fails

This commit is contained in:
Cameron Gutman committed 2020-12-23 13:56:15 -06:00
1 parent 22bebb6bbc
commit c414e1a168
4 files changed
+20 -7

No files matched your search

+5 -1
View File
@@ -17,10 +17,14 @@ Item {
stageText = qsTr("Starting %1...").arg(stage)
}
function stageFailed(stage, errorCode)
function stageFailed(stage, errorCode, failingPorts)
{
// Display the error dialog after Session::exec() returns
streamSegueErrorDialog.text = qsTr("Starting %1 failed: Error %2").arg(stage).arg(errorCode)
if (failingPorts) {
streamSegueErrorDialog.text += "\n\n" + qsTr("Check your firewall and port forwarding rules for port(s): %1").arg(failingPorts)
}
}
function connectionStarted()