浏览代码

Fix some error reporting on Windows.

Antti Aalto 9 年之前
父节点
当前提交
97f07657ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/platform/windows.pyx

+ 1 - 1
src/borg/platform/windows.pyx

@@ -372,7 +372,7 @@ def get_ads(path):
         ret.append(PyUnicode_FromWideChar(data.cStreamName, -1))
     errno = GetLastError()
     if errno != 38:
-        print(errno)
+        raise_error('FindNextStreamW', path)
 
     FindClose(searchHandle)
     PyMem_Free(cstrPath)