Update validators.py

This commit is contained in:
Mo Langning 2024-04-05 08:28:04 +08:00 committed by GitHub
parent 997dca7afc
commit 5433460af5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -312,7 +312,7 @@ else:
warn_msg='\n'.join(results["warn"])
else:
warn_msg="There are no warnings for this check!"
error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,warn_msg,error_msg))
error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,error_msg,warn_msg))
error_text='\n- - -\n'.join(error_text)
@ -320,4 +320,4 @@ open(STEP_SUMMARY_LOCATION,"w").write(SUMMARY_FORMAT%(table_content,error_text,f
if not all_pass:
print_err(".bin/validators.py","[!] Not all checks passed.")
exit(2)
exit(2)