mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Makes the sanity check messages better for users
This commit is contained in:
parent
a4927477fb
commit
0a34a4a7ad
4 changed files with 88 additions and 108 deletions
|
|
@ -338,9 +338,9 @@ def sanity_check():
|
|||
|
||||
messages.log_messages()
|
||||
|
||||
if messages.has_error():
|
||||
if messages.has_error:
|
||||
raise SanityCheckFailedException("Sanity check failed with errors. See log.")
|
||||
elif messages.has_warning():
|
||||
elif messages.has_warning:
|
||||
return "Sanity check exited with warnings. See log."
|
||||
elif len(messages) > 0:
|
||||
return "Sanity check exited with infos. See log."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue