summaryrefslogtreecommitdiff
path: root/lib/chef/log.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-09-01 13:01:42 -0700
committerJohn Keiser <john@johnkeiser.com>2015-09-01 19:30:45 -0700
commit310f0104d0807f46b77e6055bb20bb20276f33ad (patch)
tree85c351fe9865176c75cfad0897298b89dad6b7f8 /lib/chef/log.rb
parent25dac92eeb1ffa83ec549bfed0b19672c5847d80 (diff)
downloadchef-310f0104d0807f46b77e6055bb20bb20276f33ad.tar.gz
Make Dispatcher metaprogramming more straightforward
Diffstat (limited to 'lib/chef/log.rb')
-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 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)