Show error code if MyPy failed

This makes debugging it slightly easier.
This commit is contained in:
Ghostkeeper 2021-02-09 13:48:47 +01:00
parent 929149bf4e
commit 596d1570fb
No known key found for this signature in database
GPG Key ID: 14C3586CD2EFC5B9

View File

@ -73,7 +73,7 @@ def main():
for i, returncode in enumerate(pool.imap(partial(call, shell=True), commands)):
if returncode != 0:
print("\nCommand %s failed checking. :(" % commands[i])
print("\nCommand {command} failed checking (code {errcode}). :(".format(command = commands[i], errcode = returncode))
success_code = 1
if success_code:
print("MYPY check was completed, but did not pass")