Pārlūkot izejas kodu

Merge pull request #749 from enkore/issue-748

fix to silently skipping EIO and the like #748
TW 9 gadi atpakaļ
vecāks
revīzija
347615b5e1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      borg/_chunker.c

+ 1 - 0
borg/_chunker.c

@@ -152,6 +152,7 @@ chunker_fill(Chunker *c)
         }
         else {
             // some error happened
+            PyErr_SetFromErrno(PyExc_OSError);
             return 0;
         }
         length = c->bytes_read - offset;