Mercurial > pidgin.yaz
diff pidgin/plugins/gevolution/gevolution.c @ 27523:9e916fd25f48
Hopefully provide better debug logs when gevolution plugin can't open the
addressbook for whatever reason.
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Fri, 10 Jul 2009 02:47:09 +0000 |
| parents | c952aa75df18 |
| children | 0646207f360f |
line wrap: on
line diff
--- a/pidgin/plugins/gevolution/gevolution.c Fri Jul 10 02:26:37 2009 +0000 +++ b/pidgin/plugins/gevolution/gevolution.c Fri Jul 10 02:47:09 2009 +0000 @@ -298,12 +298,18 @@ { PurplePlugin *plugin = (PurplePlugin *)data; EBookQuery *query; + GError *err = NULL; timer = 0; /* Maybe this is it? */ - if (!gevo_load_addressbook(NULL, &book, NULL)) + if (!gevo_load_addressbook(NULL, &book, &err)) + { + purple_debug_error("evolution", + "Error retrieving addressbook: %s\n", err->message); + g_error_free(err); return FALSE; + } query = e_book_query_any_field_contains("");
