diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-19 12:33:15 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-19 12:33:15 -0800 |
commit | aa916576906a3d5e8ba3184988ae763ff9ba81bd (patch) | |
tree | 7d72b2b3d8dac38401fc2b529adfd9695c76dfba | |
parent | 600f83f177370adbd916666190989054d6fae1f0 (diff) | |
download | chef-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.rb | 5 |
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 |