mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Makes the sanity check messages better for users
This commit is contained in:
@@ -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."
|
||||
|
Reference in New Issue
Block a user