diff --git a/src/documents/consumer.py b/src/documents/consumer.py index d0f7399c8..05043201b 100755 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -158,7 +158,7 @@ class Consumer(LoggingMixin): self.override_tag_ids = override_tag_ids self.task_id = task_id or str(uuid.uuid4()) - self._send_progress(0, 100, 'WORKING', _('Received new file')) + self._send_progress(0, 100, 'STARTING', _('Received new file')) # this is for grouping logging entries for this particular file # together. diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index 31e956284..52b50e983 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -190,11 +190,11 @@ class RasterisedDocumentParser(DocumentParser): # Also, no archived file. if not self.text: # However, if we don't have anything, fail: - raise ParseError(e) + raise ParseError(e.__class__.__name__ + ": " + str(e)) except Exception as e: # Anything else is probably serious. - raise ParseError(e) + raise ParseError(e.__class__.__name__ + ": " + str(e)) if not self.text: # This may happen for files that don't have any text.