mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-23 16:15:02 +00:00
Display error codes when the connection is terminated
This commit is contained in:
parent
2cef09471b
commit
9ed8252cc6
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3ed3ba62534ce06c1b97fec46722969e7710fee6
|
Subproject commit 3aae4cdc595ff6f428a2abbfb9d5055c03423bc2
|
Loading…
Reference in a new issue