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

now uses display.error

This commit is contained in:
Brian Coca 2015-04-22 23:11:02 -04:00
parent 522c3feab9
commit 14fb4383f3

View file

@ -183,8 +183,8 @@ if __name__ == '__main__':
(options, args) = cli.parse() (options, args) = cli.parse()
sys.exit(cli.run(options, args)) sys.exit(cli.run(options, args))
except AnsibleError as e: except AnsibleError as e:
display.display("[ERROR]: %s" % e, color='red', stderr=True) display.error(str(e))
sys.exit(1) sys.exit(1)
except KeyboardInterrupt: except KeyboardInterrupt:
display.display("[ERROR]: interrupted", color='red', stderr=True) display.error("interrupted")
sys.exit(1) sys.exit(1)