summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorYujun Zhang <zhangyujun@gmail.com>2017-06-29 00:45:38 +0800
committerSam Doran <sdoran@ansible.com>2017-06-28 12:45:38 -0400
commit1f3755f86bf8603be1b7b4ea75c0aa9d683e0060 (patch)
tree2f579d40594fa23e9290e65b5ca242633384cbd3 /hacking
parent2e85272cd54ff0c9be97d73f3c2d1ec664987342 (diff)
downloadansible-1f3755f86bf8603be1b7b4ea75c0aa9d683e0060.tar.gz
Include error message when ansiballz_setup fails (#26127)
It is quite difficult to pinpoint what is wrong without it
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/test-module2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/test-module b/hacking/test-module
index b8ae787163..63e23c169e 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -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')