Commit 14fb4383 by Brian Coca

now uses display.error

parent 522c3fea
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment