[evolution-activesync] eassync: handle error when D-Bus is unavailable
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync] eassync: handle error when D-Bus is unavailable
- Date: Mon, 14 Jul 2014 14:23:00 +0000 (UTC)
commit 674cf44cf9aaaaa6eb38eee8fa901796f3fef027
Author: Patrick Ohly <patrick ohly intel com>
Date: Mon Jul 14 16:14:08 2014 +0200
eassync: handle error when D-Bus is unavailable
When D-Bus is unavailable and cannot be started,
eas_sync_handler_new() neither printed the error nor did it clear it.
Found as part of FDO #76273.
libeasclient/libeassync.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libeasclient/libeassync.c b/libeasclient/libeassync.c
index c9febeb..6d96b9d 100644
--- a/libeasclient/libeassync.c
+++ b/libeasclient/libeassync.c
@@ -142,6 +142,9 @@ eas_sync_handler_new (const gchar* account_uid)
object->priv->account_uid = g_strdup (account_uid);
if (!eas_gdbus_client_init (&object->priv->eas_client, account_uid, &error)) {
+ g_critical ("D-Bus: %s", error ? error->message : "unknown error");
+ if (error)
+ g_error_free (error);
g_object_unref (object);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]