Browse Source

Fix some error reporting on Windows.

Antti Aalto 9 years ago
parent
commit
97f07657ee
1 changed files with 1 additions and 1 deletions
  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))
         ret.append(PyUnicode_FromWideChar(data.cStreamName, -1))
     errno = GetLastError()
     errno = GetLastError()
     if errno != 38:
     if errno != 38:
-        print(errno)
+        raise_error('FindNextStreamW', path)
 
 
     FindClose(searchHandle)
     FindClose(searchHandle)
     PyMem_Free(cstrPath)
     PyMem_Free(cstrPath)