summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-19 13:32:02 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-19 13:32:02 -0800
commit25b2c0559caaf29872d6cfe3ab146cb63c496d00 (patch)
tree9a5d03a872c69d81d882a916313c7409a562b45a /lib
parent94b2acc47752f7c8b6d514422cd2419b2ce96e54 (diff)
parentaa916576906a3d5e8ba3184988ae763ff9ba81bd (diff)
downloadchef-25b2c0559caaf29872d6cfe3ab146cb63c496d00.tar.gz
Merge pull request #4433 from chef/lcg/content-length-info
add a comment on exception triggers
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/exceptions.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index dfc5a6efbb..f9a717471c 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -397,7 +397,10 @@ class Chef
# length declared in the http response.
class ContentLengthMismatch < RuntimeError
def initialize(response_length, content_length)
- super "Response body length #{response_length} does not match HTTP Content-Length header #{content_length}."
+ super <<-EOF
+Response body length #{response_length} does not match HTTP Content-Length header #{content_length}.
+This error is most often caused by network issues (proxies, etc) outside of chef-client.
+ EOF
end
end