Browse Source

Show error code if MyPy failed

This makes debugging it slightly easier.
Ghostkeeper 4 years ago
parent
commit
596d1570fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      run_mypy.py

+ 1 - 1
run_mypy.py

@@ -73,7 +73,7 @@ def main():
 
 
     for i, returncode in enumerate(pool.imap(partial(call, shell=True), commands)):
     for i, returncode in enumerate(pool.imap(partial(call, shell=True), commands)):
         if returncode != 0:
         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
             success_code = 1
     if success_code:
     if success_code:
         print("MYPY check was completed, but did not pass")
         print("MYPY check was completed, but did not pass")