summaryrefslogtreecommitdiff
path: root/libempathy/empathy-log-store-empathy.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-09 18:23:56 +0000
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-09 18:23:56 +0000
commite0a114aaaf1c05b409ecbab326d0140b63670cad (patch)
tree0b3d82c814e87139f6c0bb7a47387640d02c1a82 /libempathy/empathy-log-store-empathy.c
parentf0e992ebe6c9bba79bf5a7b5b284a23639930f67 (diff)
downloadempathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.gz
Print a debug message if opening a log directory fails
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2651
Diffstat (limited to 'libempathy/empathy-log-store-empathy.c')
-rw-r--r--libempathy/empathy-log-store-empathy.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c
index 15a0b2e51..138eef5b8 100644
--- a/libempathy/empathy-log-store-empathy.c
+++ b/libempathy/empathy-log-store-empathy.c
@@ -627,10 +627,15 @@ log_store_empathy_get_chats_for_dir (EmpathyLogStore *self,
GDir *gdir;
GList *hits = NULL;
const gchar *name;
+ GError *error = NULL;
- gdir = g_dir_open (dir, 0, NULL);
+ gdir = g_dir_open (dir, 0, &error);
if (!gdir)
- return NULL;
+ {
+ DEBUG ("Failed to open directory: %s, error: %s", dir, error->message);
+ g_error_free (error);
+ return NULL;
+ }
while ((name = g_dir_read_name (gdir)) != NULL)
{