changeset 8996:c34010571c02 HEAD

dict-file: If file_dotlock_open() fails, log also the path.
author Timo Sirainen <tss@iki.fi>
date Thu, 30 Apr 2009 16:17:56 -0400
parents e14f1d4b6688
children cceea391d04d
files src/lib-dict/dict-file.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-dict/dict-file.c	Wed Apr 29 15:05:53 2009 -0400
+++ b/src/lib-dict/dict-file.c	Thu Apr 30 16:17:56 2009 -0400
@@ -292,7 +292,8 @@
 	fd = file_dotlock_open(&file_dict_dotlock_settings, dict->path, 0,
 			       &dotlock);
 	if (fd == -1) {
-		i_error("file dict commit: file_dotlock_open() failed: %m");
+		i_error("file dict commit: file_dotlock_open(%s) failed: %m",
+			dict->path);
 		return -1;
 	}
 	/* refresh once more now that we're locked */