summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-12 09:18:16 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-12 09:18:16 -0800
commit812101f11a6c33e49f401ad72598ca6ffb38adc4 (patch)
treebab654bbd8d6310d46c0f1787691133a2b6bb743 /lib/chef/http
parentc7194aea7c145b94c46a97dd3f218aff1b0116c2 (diff)
parentc844e1c87374b18ee634a06a5325518631607c90 (diff)
downloadchef-812101f11a6c33e49f401ad72598ca6ffb38adc4.tar.gz
Merge pull request #4381 from chef/lcg/useless-to-s
chefstyle: fix Lint/StringConversionInInterpolation
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb
index 1baf5724ae..24cd99375d 100644
--- a/lib/chef/http/http_request.rb
+++ b/lib/chef/http/http_request.rb
@@ -127,7 +127,7 @@ class Chef
# http://redmine.ruby-lang.org/issues/show/2758
if e.to_s =~ /#{Regexp.escape(%q|undefined method `closed?' for nil:NilClass|)}/
Chef::Log.debug("Rescued error in http connect, re-raising as Errno::ECONNREFUSED to hide bug in net/http")
- Chef::Log.debug("#{e.class.name}: #{e.to_s}")
+ Chef::Log.debug("#{e.class.name}: #{e}")
Chef::Log.debug(e.backtrace.join("\n"))
raise Errno::ECONNREFUSED, "Connection refused attempting to contact #{url.scheme}://#{host}:#{port}"
else