Makes the sanity check messages better for users

This commit is contained in:
Trenton Holmes
2022-05-30 17:03:33 -07:00
parent d7654e978d
commit 37b19ea3ef
4 changed files with 88 additions and 108 deletions

View File

@@ -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."