tools (stream): log error when a SatFile is closed:
error where only sent on `ProgressError`, but it is necessary to log the error as it may happen before any progression is started.
This commit is contained in:
parent
aea64e7b87
commit
0f20af88f1
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue