Show socket error in McClient

Signed-off-by: iTrooz <hey@itrooz.fr>
This commit is contained in:
iTrooz 2025-01-25 20:26:52 +01:00
parent b06c4341d8
commit 0b9d4784d8
No known key found for this signature in database
GPG Key ID: 8B83F77667B1BC6A

View File

@ -26,7 +26,7 @@ void McClient::getStatusData() {
});
connect(&m_socket, &QTcpSocket::errorOccurred, this, [this]() {
emitFail("Socket disconnected");
emitFail("Socket disconnected: " + m_socket.errorString());
});
m_socket.connectToHost(m_ip, m_port);