summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:16:43 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:16:43 -0800
commit5a69125a49ebb10848cc87cb3e31a540b517c633 (patch)
tree2ecea98b9f88ec43de28775469ce61ad89439ee0 /lib/chef/exceptions.rb
parentf9ca811feb8560a9b8e054030d6cf5ea62d8cfda (diff)
downloadchef-5a69125a49ebb10848cc87cb3e31a540b517c633.tar.gz
peer review feedback for deprecation warnings
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 498970468a..38ba984ea7 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -213,8 +213,8 @@ class Chef
class NoProviderAvailable < RuntimeError; end
class DeprecatedFeatureError < RuntimeError;
- def initalize
- super("raising deprecation error due to treat_deprecation_warnings_as_errors being set")
+ def initalize(message)
+ super("#{message} (raising error due to treat_deprecation_warnings_as_errors being set)")
end
end