diff --git a/run_mypy.py b/run_mypy.py index ec0583d43f..4486085064 100644 --- a/run_mypy.py +++ b/run_mypy.py @@ -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")