diff options
author | Bryan McLellan <bryanm@widemile.com> | 2008-10-01 12:47:35 -0700 |
---|---|---|
committer | Bryan McLellan <bryanm@widemile.com> | 2008-10-01 12:47:35 -0700 |
commit | de1bc77f177f20b5d9a95cac546d1dadfd116bcb (patch) | |
tree | 3c2e03b348ecaec388a5aa164a4634d31a027b87 | |
parent | f40d1f41e8a72e3678137b359f784208f50bc8ea (diff) | |
download | chef-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.rb | 6 |
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 |