be a little bit more helpful than "Error reading directory."

make a note to try to be more helpful still.


svn:r13776
This commit is contained in:
Roger Dingledine 2008-02-28 21:37:39 +00:00
parent eefe2a3562
commit 04efc74e18

View File

@ -2108,7 +2108,8 @@ tor_listdir(const char *dirname)
}
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;
}