1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Include error message when ansiballz_setup fails (#26127)

It is quite difficult to pinpoint what is wrong without it
This commit is contained in:
Yujun Zhang 2017-06-29 00:45:38 +08:00 committed by Sam Doran
parent 2e85272cd5
commit 1f3755f86b

View file

@ -183,7 +183,7 @@ def ansiballz_setup(modfile, modname, interpreters):
print("*" * 35)
print("INVALID OUTPUT FROM ANSIBALLZ MODULE WRAPPER")
print(out)
sys.exit(1)
sys.exit(err)
debug_dir = lines[1].strip()
argsfile = os.path.join(debug_dir, 'args')