Improve error output
This commit is contained in:
parent
cb530306a9
commit
9727d6c74f
@ -69,8 +69,9 @@ class _QtFIFOReader(QObject):
|
|||||||
for line in self._fifo:
|
for line in self._fifo:
|
||||||
self.got_line.emit(line.rstrip('\r\n'))
|
self.got_line.emit(line.rstrip('\r\n'))
|
||||||
self._notifier.setEnabled(True)
|
self._notifier.setEnabled(True)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError as e:
|
||||||
log.misc.error("Invalid unicode in userscript output")
|
log.misc.error("Invalid unicode in userscript output: {}"
|
||||||
|
.format(e))
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
"""Clean up so the FIFO can be closed."""
|
"""Clean up so the FIFO can be closed."""
|
||||||
|
Loading…
Reference in New Issue
Block a user