[or-cvs] r13776: be a little bit more helpful than "Error reading directory." (tor/trunk/src/common)
arma at seul.org
arma at seul.org
Thu Feb 28 21:37:39 UTC 2008
Author: arma
Date: 2008-02-28 16:37:39 -0500 (Thu, 28 Feb 2008)
New Revision: 13776
Modified:
tor/trunk/src/common/util.c
Log:
be a little bit more helpful than "Error reading directory."
make a note to try to be more helpful still.
Modified: tor/trunk/src/common/util.c
===================================================================
--- tor/trunk/src/common/util.c 2008-02-28 16:40:08 UTC (rev 13775)
+++ tor/trunk/src/common/util.c 2008-02-28 21:37:39 UTC (rev 13776)
@@ -2108,7 +2108,8 @@
}
if (!FindNextFile(handle, &findData)) {
if (GetLastError() != ERROR_NO_MORE_FILES) {
- log_warn(LD_FS, "Error reading directory.");
+ /* XXX021 can we say what the error is? */
+ log_warn(LD_FS, "Error reading directory '%s'.", dirname);
}
break;
}
More information about the tor-commits
mailing list