diff options
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c index 66a41e49b..d615687f6 100644 --- a/src/update.c +++ b/src/update.c @@ -540,9 +540,14 @@ updateDirectory(struct directory *directory, const struct stat *st) return false; dir = opendir(path_fs); - g_free(path_fs); - if (!dir) + if (!dir) { + g_warning("Failed to open directory %s: %s", + path_fs, g_strerror(errno)); + g_free(path_fs); return false; + } + + g_free(path_fs); removeDeletedFromDirectory(directory); |