diff --git a/sat/tools/stream.py b/sat/tools/stream.py index 0cf206b4..903507b8 100644 --- a/sat/tools/stream.py +++ b/sat/tools/stream.py @@ -63,7 +63,7 @@ class SatFile: if False, you'll have to call self.progressFinished and self.progressError yourself. progressStarted signal is always sent automatically - @param check_size_with_read(bool): if True, size well be checked using number of + @param check_size_with_read(bool): if True, size will be checked using number of bytes read or written. This is useful when data_cb modifiy len of file. """ self.host = host @@ -139,6 +139,8 @@ class SatFile: self.progressError(error) self.host.removeProgressCb(self.uid, self.profile) + if error is not None: + log.error(f"file {self._file} closed with an error: {error}") @property def closed(self):