Pārlūkot izejas kodu

Fix some error reporting on Windows.

Antti Aalto 9 gadi atpakaļ
vecāks
revīzija
97f07657ee
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)