From 1f3755f86bf8603be1b7b4ea75c0aa9d683e0060 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 29 Jun 2017 00:45:38 +0800 Subject: [PATCH] Include error message when ansiballz_setup fails (#26127) It is quite difficult to pinpoint what is wrong without it --- hacking/test-module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/test-module b/hacking/test-module index b8ae7871631..63e23c169e8 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')