From bcc6fdba9d3737034438362e9d45bc87f686c8df Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Thu, 5 Feb 2015 10:40:59 -0500 Subject: [PATCH] provide access to QAbstractSocket error string on error When a socket error occurs the string version of the error is now stored in QAmqpClient's internal errorString variable, providing access to the string to users of the client. --- src/qamqpclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qamqpclient.cpp b/src/qamqpclient.cpp index aa6f0cc..d484460 100644 --- a/src/qamqpclient.cpp +++ b/src/qamqpclient.cpp @@ -189,6 +189,7 @@ void QAmqpClientPrivate::_q_socketError(QAbstractSocket::SocketError error) // per spec, on any error we need to close the socket immediately // and send no more data; socket->close(); + errorString = socket->errorString(); if (autoReconnect) { qAmqpDebug() << "trying to reconnect after: " << timeout << "ms";