diff options
author | Claire McQuin <claire@getchef.com> | 2015-05-08 17:30:33 -0700 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2015-05-27 14:16:23 -0400 |
commit | 9890e02b3bc16ddc2416497ad39acc40afe98c32 (patch) | |
tree | 36155fd108e16b599b1f5a7fcc8786e3452cd710 /lib/chef/formatters | |
parent | 67b9fdc307fd0a7480cc4f11c18540763ec43b09 (diff) | |
download | chef-9890e02b3bc16ddc2416497ad39acc40afe98c32.tar.gz |
Save and report audit phase failure on run_completed or run_failed.
Diffstat (limited to 'lib/chef/formatters')
-rw-r--r-- | lib/chef/formatters/doc.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb index 945bc71f2f..e63c764cbf 100644 --- a/lib/chef/formatters/doc.rb +++ b/lib/chef/formatters/doc.rb @@ -188,8 +188,10 @@ class Chef puts_line "Audit phase exception:" indent puts_line "#{error.message}" - error.backtrace.each do |l| - puts_line l + if error.backtrace + error.backtrace.each do |l| + puts_line l + end end end |