summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-19 12:33:15 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-19 12:33:15 -0800
commitaa916576906a3d5e8ba3184988ae763ff9ba81bd (patch)
tree7d72b2b3d8dac38401fc2b529adfd9695c76dfba
parent600f83f177370adbd916666190989054d6fae1f0 (diff)
downloadchef-aa916576906a3d5e8ba3184988ae763ff9ba81bd.tar.gz
add a comment on exception triggers
this is almost always a real networking issue and there is no bug in chef-client.
-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