aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-10 02:23:56 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-10 02:23:56 +0800
commite0a114aaaf1c05b409ecbab326d0140b63670cad (patch)
tree0b3d82c814e87139f6c0bb7a47387640d02c1a82 /libempathy
parentf0e992ebe6c9bba79bf5a7b5b284a23639930f67 (diff)
downloadgsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.gz
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.bz2
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.lz
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.xz
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.tar.zst
gsoc2013-empathy-e0a114aaaf1c05b409ecbab326d0140b63670cad.zip
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')
-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)
{