mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
Show error code if MyPy failed
This makes debugging it slightly easier.
This commit is contained in:
parent
929149bf4e
commit
596d1570fb
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user