empathy r1000 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1000 - trunk/src
- Date: Sun, 20 Apr 2008 08:58:56 +0100 (BST)
Author: xclaesse
Date: Sun Apr 20 07:58:56 2008
New Revision: 1000
URL: http://svn.gnome.org/viewvc/empathy?rev=1000&view=rev
Log:
Display error message when cannot create salut account.
Modified:
trunk/src/empathy.c
Modified: trunk/src/empathy.c
==============================================================================
--- trunk/src/empathy.c (original)
+++ trunk/src/empathy.c Sun Apr 20 07:58:56 2008
@@ -141,6 +141,7 @@
gchar *last_name = NULL;
gchar *email = NULL;
gchar *jid = NULL;
+ GError *error = NULL;
/* Check if we already created a salut account */
empathy_conf_get_bool (empathy_conf_get(),
@@ -163,8 +164,10 @@
g_object_unref (protocol);
/* Get self EContact from EDS */
- if (!e_book_get_self (&contact, &book, NULL)) {
- empathy_debug (DEBUG_DOMAIN, "Failed to get self econtact");
+ if (!e_book_get_self (&contact, &book, &error)) {
+ empathy_debug (DEBUG_DOMAIN, "Failed to get self econtact: %s",
+ error ? error->message : "No error given");
+ g_clear_error (&error);
g_object_unref (profile);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]