diff options
author | John Keiser <john@johnkeiser.com> | 2015-09-01 13:01:42 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-01 19:30:45 -0700 |
commit | 310f0104d0807f46b77e6055bb20bb20276f33ad (patch) | |
tree | 85c351fe9865176c75cfad0897298b89dad6b7f8 /lib/chef/log.rb | |
parent | 25dac92eeb1ffa83ec549bfed0b19672c5847d80 (diff) | |
download | chef-310f0104d0807f46b77e6055bb20bb20276f33ad.tar.gz |
Make Dispatcher metaprogramming more straightforward
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 2cf08324c8..aff6252e12 100644 --- a/lib/chef/log.rb +++ b/lib/chef/log.rb @@ -38,7 +38,7 @@ class Chef end def self.deprecation(msg=nil, location=caller(2..2)[0], &block) - msg = Array(msg) + [ location ] if location + msg << " at #{Array(location).join("\n")}" if Chef::Config[:treat_deprecation_warnings_as_errors] error(msg, &block) raise Chef::Exceptions::DeprecatedFeatureError.new(msg) |