]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix consumer error typo
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 1 Sep 2023 07:11:32 +0000 (00:11 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Fri, 1 Sep 2023 07:11:32 +0000 (00:11 -0700)
src/documents/consumer.py
src/documents/tests/test_consumer.py

index 59c4b7d859b892869f79e4bbbb6b5f9462554656..08d073a4bcf1178028035dfd5727002fe424e4c7 100644 (file)
@@ -552,7 +552,7 @@ class Consumer(LoggingMixin):
             self._fail(
                 str(e),
                 f"The following error occurred while storing document "
-                f"{self.filename} after consuming: {e}",
+                f"{self.filename} after parsing: {e}",
                 exc_info=True,
                 exception=e,
             )
index a9cb887de2e5e5cc0640cbbdc3d26a719364539d..f0e5421cf9a6b1fc771a49d0607675ee4650f727 100644 (file)
@@ -551,7 +551,7 @@ class TestConsumer(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
 
         self.assertRaisesMessage(
             ConsumerError,
-            "sample.pdf: The following error occurred while storing document sample.pdf after consuming: NO.",
+            "sample.pdf: The following error occurred while storing document sample.pdf after parsing: NO.",
             self.consumer.try_consume_file,
             filename,
         )