mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
report extra info in verbose and if needed
This commit is contained in:
parent
8f62be7b7c
commit
9c6d7ddeb5
2 changed files with 5 additions and 2 deletions
|
@ -67,8 +67,6 @@ class AnsibleError(Exception):
|
|||
self.message = '%s' % to_native(message)
|
||||
if orig_exc:
|
||||
self.orig_exc = orig_exc
|
||||
self.message += '\nexception type: %s' % to_native(type(orig_exc))
|
||||
self.message += '\nexception: %s' % to_native(orig_exc)
|
||||
|
||||
self.tb = ''.join(traceback.format_tb(sys.exc_info()[2]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue