diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-12-30 19:18:45 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-03 15:54:08 +0100 |
commit | 065af7a7abe6773d9909c8ac092dedfc9cd531e9 (patch) | |
tree | 1c08cf35f6615242707921bcc28df9c5a2e0fc3f /tools | |
parent | 1dc81e3d556da4abef195803a6c2742bf40ff8a5 (diff) |
Added JsonDbClient::errorString
The function returns a description of the socket error.
Change-Id: I071824d2f6d9496881a2fbfe8989e3e1dcfbbbad
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/jsondb-client/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/jsondb-client/client.cpp b/tools/jsondb-client/client.cpp index c45616b9..572bbc51 100644 --- a/tools/jsondb-client/client.cpp +++ b/tools/jsondb-client/client.cpp @@ -259,7 +259,7 @@ void Client::interactiveMode() void Client::disconnected() { - qCritical() << "Lost connection to the server"; + qCritical() << "Lost connection to the server:" << mConnection->errorString(); } void Client::notified(const QString ¬ify_uuid, const QVariant &object, const QString &action) @@ -283,7 +283,7 @@ void Client::statusChanged() qCritical() << "Connected to the server"; break; case JsonDbClient::Error: - qCritical() << "Cannot connect to the server"; + qCritical() << "Cannot connect to the server:" << mConnection->errorString(); break; default: return; |