summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:58:27 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 16:58:27 -0800
commit358803d8540eb9de291b7cf22c08c0d1b19e8444 (patch)
tree28a8ba7ec7c731e5cb53c64625281a6ffb98d0cd
parent5a69125a49ebb10848cc87cb3e31a540b517c633 (diff)
downloadchef-358803d8540eb9de291b7cf22c08c0d1b19e8444.tar.gz
pass message to deprecation exception
-rw-r--r--lib/chef/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/log.rb b/lib/chef/log.rb
index 5c737699bc..682afcea4b 100644
--- a/lib/chef/log.rb
+++ b/lib/chef/log.rb
@@ -38,7 +38,7 @@ class Chef
def self.deprecation(msg=nil, &block)
if Chef::Config[:treat_deprecation_warnings_as_errors]
error(msg, &block)
- raise Chef::Exceptions::DeprecatedFeatureError
+ raise Chef::Exceptions::DeprecatedFeatureError.new(msg)
else
warn(msg, &block)
end