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:
parent
798972c72a
commit
942ed146c3
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue