We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 863862b commit dbb602cCopy full SHA for dbb602c
rake_tasks/elasticsearch_tasks.rake
@@ -43,8 +43,8 @@ namespace :elasticsearch do
43
44
def download_file!(url, filename)
45
puts "Downloading #{filename} from #{url}"
46
- File.open(filename, "w") do |downloaded_file|
47
- URI.open(url, "rb") do |artifact_file|
+ File.open(filename, 'w') do |downloaded_file|
+ URI.open(url, 'rb') do |artifact_file|
48
downloaded_file.write(artifact_file.read)
49
end
50
@@ -54,8 +54,11 @@ namespace :elasticsearch do
54
warn "[!] Couldn't download #{filename}"
55
exit 1
56
57
+ rescue OpenURI::HTTPError => e
58
+ abort e.message
59
rescue StandardError => e
- abort e
60
+ puts e.backtrace.join("\n\t")
61
62
63
64
desc 'Download artifacts (tests and REST spec) for currently running cluster'
0 commit comments