]> git.0d.be Git - empathy.git/commitdiff
Display error message when cannot create salut account.
authorXavier Claessens <xclaesse@src.gnome.org>
Sun, 20 Apr 2008 07:58:56 +0000 (07:58 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 20 Apr 2008 07:58:56 +0000 (07:58 +0000)
svn path=/trunk/; revision=1000

src/empathy.c

index b55cc7bc2d686c105e2e4d1cb6bbe70d724e76ea..08d1d0c12600b581a0591f401bc7bc58bea01752 100644 (file)
@@ -141,6 +141,7 @@ create_salut_account (void)
        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 @@ create_salut_account (void)
        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;
        }