mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Upgrades to error handling, now general try/catch available.
This commit is contained in:
@@ -198,7 +198,10 @@ if __name__ == '__main__':
|
||||
(runner, results) = cli.run(options, args)
|
||||
except AnsibleError as e:
|
||||
# Generic handler for ansible specific errors
|
||||
print e
|
||||
print "ERROR: %s" % str(e)
|
||||
sys.exit(1)
|
||||
except Exception as e2:
|
||||
print e2.__class__
|
||||
else:
|
||||
cli.output(runner, results, options, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user