mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Display error codes when the connection is terminated
This commit is contained in:
@@ -132,7 +132,11 @@ void Session::clConnectionTerminated(int errorCode)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
s_ActiveSession->m_UnexpectedTermination = true;
|
s_ActiveSession->m_UnexpectedTermination = true;
|
||||||
emit s_ActiveSession->displayLaunchError(tr("Connection terminated"));
|
|
||||||
|
// We'll assume large errors are hex values
|
||||||
|
bool hexError = qAbs(errorCode) > 1000;
|
||||||
|
emit s_ActiveSession->displayLaunchError(tr("Connection terminated") + "\n\n" +
|
||||||
|
tr("Error code: %1").arg(errorCode, hexError ? 8 : 0, hexError ? 16 : 10, QChar('0')));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: 3ed3ba6253...3aae4cdc59
Reference in New Issue
Block a user