diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-27 16:30:00 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-27 16:30:00 -0800 |
commit | db82dd47d73e70fb2c0fc46c2cab510364801d50 (patch) | |
tree | 919c55f7df28f4abd3601cc61343f9f740b8b528 /lib/chef/http | |
parent | 12f2badc66d88bdd6199a44aa403dcdc02ffc168 (diff) | |
download | chef-db82dd47d73e70fb2c0fc46c2cab510364801d50.tar.gz |
move text message to exception class
Diffstat (limited to 'lib/chef/http')
-rw-r--r-- | lib/chef/http/validate_content_length.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/validate_content_length.rb b/lib/chef/http/validate_content_length.rb index 37305be756..49f1738d42 100644 --- a/lib/chef/http/validate_content_length.rb +++ b/lib/chef/http/validate_content_length.rb @@ -85,7 +85,7 @@ class Chef Chef::Log.debug "Content-Length header = #{content_length}" Chef::Log.debug "Response body length = #{response_length}" if response_length != content_length - raise Chef::Exceptions::ContentLengthMismatch, "Response body length #{response_length} does not match HTTP Content-Length header #{content_length}." + raise Chef::Exceptions::ContentLengthMismatch.new(response_length, content_length) end true end |