Skip to content

Commit

Permalink
Merge branch 'CHEF-2313'
Browse files Browse the repository at this point in the history
  • Loading branch information
btm committed Jul 19, 2011
2 parents c3c93e0 + 8664da7 commit 4cc048f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chef/lib/chef/cookbook_uploader.rb
Original file line number Diff line number Diff line change
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 4cc048f

Please sign in to comment.