summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <bryanm@widemile.com>2008-10-01 12:47:35 -0700
committerBryan McLellan <bryanm@widemile.com>2008-10-01 12:47:35 -0700
commitde1bc77f177f20b5d9a95cac546d1dadfd116bcb (patch)
tree3c2e03b348ecaec388a5aa164a4634d31a027b87
parentf40d1f41e8a72e3678137b359f784208f50bc8ea (diff)
downloadchef-de1bc77f177f20b5d9a95cac546d1dadfd116bcb.tar.gz
run_request is just too genericly used, change errors to show host/port rather than claiming that the problem is with CouchDB
-rw-r--r--lib/chef/rest.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb
index 7b9ecefafd..60d98dbc2a 100644
--- a/lib/chef/rest.rb
+++ b/lib/chef/rest.rb
@@ -110,13 +110,13 @@ class Chef
end
begin
- Chef::Log.debug("Sending HTTP Request via #{req.method} to #{req.path}")
+ Chef::Log.debug("Sending HTTP Request to #{url.host}:#{url.port} via #{req.method} to #{req.path}")
res = http.request(req)
rescue Errno::ECONNREFUSED
- Chef::Log.error("Connection refused connecting to CouchDB")
+ Chef::Log.error("Connection refused connecting to #{url.host}:#{url.port} for #{req.path}")
exit(1)
rescue Timeout::Error
- Chef::Log.error("Timeout connecting to CouchDB")
+ Chef::Log.error("Timeout connecting to #{url.host}:#{url.port} for #{req.path}")
exit(1)
end