From 596d1570fbea434e58d435a67fac35b65362b27d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 9 Feb 2021 13:48:47 +0100 Subject: [PATCH] Show error code if MyPy failed This makes debugging it slightly easier. --- run_mypy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")