diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-03-09 18:23:56 +0000 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-09 18:23:56 +0000 |
commit | e0a114aaaf1c05b409ecbab326d0140b63670cad (patch) | |
tree | 0b3d82c814e87139f6c0bb7a47387640d02c1a82 /libempathy/empathy-log-store-empathy.c | |
parent | f0e992ebe6c9bba79bf5a7b5b284a23639930f67 (diff) | |
download | empathy-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.c | 9 |
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) { |