Commit 720f2c12 authored by Martin Koller's avatar Martin Koller

show error string instead error number

Differential Revision: https://phabricator.kde.org/D9250
parent 72b9a965
......@@ -149,8 +149,8 @@ void SessionThread::run()
m_parentSession->d, &SessionPrivate::socketConnected);
connect(m_socket, static_cast<void(KTcpSocket::*)(KTcpSocket::Error)>(&KTcpSocket::error),
this, [this](KTcpSocket::Error err) {
qCWarning(KSMTP_LOG) << "Socket error:" << err;
Q_EMIT m_parentSession->connectionError(QString::number(err));
qCWarning(KSMTP_LOG) << "Socket error:" << err << m_socket->errorString();
Q_EMIT m_parentSession->connectionError(m_socket->errorString());
});
connect(this, &SessionThread::encryptionNegotiationResult,
m_parentSession->d, &SessionPrivate::encryptionNegotiationResult);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment