diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-04-20 15:58:56 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-04-20 15:58:56 +0800 |
commit | 5fca7b5191004b69a30fc891db3da8c3a631b907 (patch) | |
tree | 79076a3d79806c8cbbb7d13fcba345b6551c1081 /src | |
parent | 8fa3d91653255af6cb5cfdb4537691fc4dff6564 (diff) | |
download | gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar.gz gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar.bz2 gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar.lz gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar.xz gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.tar.zst gsoc2013-empathy-5fca7b5191004b69a30fc891db3da8c3a631b907.zip |
Display error message when cannot create salut account.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1000 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/empathy.c b/src/empathy.c index b55cc7bc2..08d1d0c12 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -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; } |