mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
now uses display.error
This commit is contained in:
@@ -183,8 +183,8 @@ if __name__ == '__main__':
|
||||
(options, args) = cli.parse()
|
||||
sys.exit(cli.run(options, args))
|
||||
except AnsibleError as e:
|
||||
display.display("[ERROR]: %s" % e, color='red', stderr=True)
|
||||
display.error(str(e))
|
||||
sys.exit(1)
|
||||
except KeyboardInterrupt:
|
||||
display.display("[ERROR]: interrupted", color='red', stderr=True)
|
||||
display.error("interrupted")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user