mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
better error messages
This commit is contained in:
parent
91f7c4e685
commit
b0ed06003b
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue