diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 16:58:27 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 16:58:27 -0800 |
commit | 358803d8540eb9de291b7cf22c08c0d1b19e8444 (patch) | |
tree | 28a8ba7ec7c731e5cb53c64625281a6ffb98d0cd /lib/chef/log.rb | |
parent | 5a69125a49ebb10848cc87cb3e31a540b517c633 (diff) | |
download | chef-358803d8540eb9de291b7cf22c08c0d1b19e8444.tar.gz |
pass message to deprecation exception
Diffstat (limited to 'lib/chef/log.rb')
-rw-r--r-- | lib/chef/log.rb | 2 |
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 |