summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-12-03 16:58:14 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:22 -0800
commit92f21502937682a3db715bf7c3a3b79e1bd784bc (patch)
tree30c3b07771c738553836611c20dceec0652cd358 /lib/chef/exceptions.rb
parentd454a7214b2738acd9a00e1f29737927a4a4d5d7 (diff)
downloadchef-92f21502937682a3db715bf7c3a3b79e1bd784bc.tar.gz
if in why_run, do not enter the audit phase - because people run why_run to see converge statistics
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 2cf8766585..dabdd03802 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -397,8 +397,8 @@ class Chef
end
end
class AuditsFailed < RuntimeError
- def initialize
- super "There were audit example failures. Results were still sent to the server."
+ def initialize(num_failed, num_total)
+ super "Audit phase found failures - #{num_failed}/#{num_total} audits failed"
end
end