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

errors to stderr

This commit is contained in:
Brian Coca 2017-02-08 09:30:04 -05:00
parent 798972c72a
commit 942ed146c3

View file

@ -254,9 +254,8 @@ def main():
pc.deserialize(pc_data)
except Exception as e:
# FIXME: better error message/handling/logging
print("FAIL: %s" % e)
print(traceback.format_exc())
sys.exit(1)
sys.stderr.write(traceback.format_exc())
sys.exit("FAIL: %s" % e)
display.verbosity = pc.verbosity