From 065af7a7abe6773d9909c8ac092dedfc9cd531e9 Mon Sep 17 00:00:00 2001 From: Denis Dzyubenko Date: Fri, 30 Dec 2011 19:18:45 +0100 Subject: Added JsonDbClient::errorString The function returns a description of the socket error. Change-Id: I071824d2f6d9496881a2fbfe8989e3e1dcfbbbad Sanity-Review: Qt Sanity Bot Reviewed-by: Prasanth Ullattil Reviewed-by: Jamey Hicks --- tools/jsondb-client/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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; -- cgit v1.2.3