diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-10-02 09:59:41 -0400 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-10-03 16:48:21 -0400 |
commit | 9c6d7ddeb50eb1d0568d6c5b2f286991772b0396 (patch) | |
tree | 69ea40a48598e02a93f92fa8df69dbf3fff5aaee /bin | |
parent | 8f62be7b7c93ec669fac26c8f2fc7a73d00c1f3c (diff) | |
download | ansible-9c6d7ddeb50eb1d0568d6c5b2f286991772b0396.zip |
report extra info in verbose and if needed
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ansible b/bin/ansible index 7eaa5337b1..5c30b962dc 100755 --- a/bin/ansible +++ b/bin/ansible @@ -133,6 +133,11 @@ if __name__ == '__main__': display.error("Unexpected Exception, this is probably a bug: %s" % to_text(e), wrap_text=False) if not have_cli_options or have_cli_options and cli.options.verbosity > 2: log_only = False + if hasattr(e, 'orig_exc'): + display.vvv('\nexception type: %s' % to_text(type(e.orig_exc))) + why = to_text(e.orig_exc) + if to_text(e) != why: + display.vvv('\noriginal msg: %s' % why) else: display.display("to see the full traceback, use -vvv") log_only = True |