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')