Skip to content

Commit

Permalink
Fixes CHEF-2313
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Rubio authored and btm committed Jul 19, 2011
1 parent c3c93e0 commit 8664da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chef/lib/chef/cookbook_uploader.rb
Expand Up @@ -134,7 +134,7 @@ def uploader_function_for(file, checksum, url, checksums_to_upload)
RestClient::Resource.new(url, :headers=>headers, :timeout=>1800, :open_timeout=>1800).put(file_contents)
checksums_to_upload.delete(checksum)
rescue RestClient::Exception => e
ui.error("Failed to upload #@cookbook : #{e.message}\n#{e.response.body}")
Chef::Knife.ui.error("Failed to upload #@cookbook : #{e.message}\n#{e.response.body}")
raise
end
end
Expand Down

0 comments on commit 8664da7

Please sign in to comment.