Better messages

This commit is contained in:
alesapin 2021-10-29 20:40:28 +03:00
parent 4c645f3ef6
commit 683a8cf799

View File

@ -112,9 +112,9 @@ if __name__ == "__main__":
if retcode == 0:
logging.info("Run successfully")
status = "success"
description = "Run Ok"
description = "Docs check passed"
else:
description = "Run failed (non zero exit code)"
description = "Docs check failed (non zero exit code)"
status = "failure"
logging.info("Run failed")
@ -136,7 +136,7 @@ if __name__ == "__main__":
lines.append((line.split(':')[-1], "FAIL"))
if lines:
status = "failure"
description = "Found errors during docs check"
description = "Found errors in docs"
elif status != "failure":
lines.append(("No errors found", "OK"))
else: