瀏覽代碼

be a little bit more helpful than "Error reading directory."
make a note to try to be more helpful still.


svn:r13776

Roger Dingledine 17 年之前
父節點
當前提交
04efc74e18
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/common/util.c

+ 2 - 1
src/common/util.c

@@ -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;
     }