add id to document duplicate error message

This commit is contained in:
Michael Shamoon 2022-10-02 00:18:16 -07:00 committed by Trenton H
parent 905b28c1d7
commit 11ad8ada79

View File

@ -120,7 +120,7 @@ class Consumer(LoggingMixin):
self._fail(
MESSAGE_DOCUMENT_ALREADY_EXISTS,
f"Not consuming {self.filename}: It is a duplicate of"
f" {existing_doc.get().title}",
f" {existing_doc.get().title} (#{existing_doc.get().pk})",
)
def pre_check_directories(self):