File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ namespace :elasticsearch do
43
43
44
44
def download_file! ( url , filename )
45
45
puts "Downloading #{ filename } from #{ url } "
46
- File . open ( filename , "w" ) do |downloaded_file |
47
- URI . open ( url , "rb" ) do |artifact_file |
46
+ File . open ( filename , 'w' ) do |downloaded_file |
47
+ URI . open ( url , 'rb' ) do |artifact_file |
48
48
downloaded_file . write ( artifact_file . read )
49
49
end
50
50
end
@@ -54,8 +54,11 @@ namespace :elasticsearch do
54
54
warn "[!] Couldn't download #{ filename } "
55
55
exit 1
56
56
end
57
+ rescue OpenURI ::HTTPError => e
58
+ abort e . message
57
59
rescue StandardError => e
58
- abort e
60
+ puts e . backtrace . join ( "\n \t " )
61
+ abort e . message
59
62
end
60
63
61
64
desc 'Download artifacts (tests and REST spec) for currently running cluster'
You can’t perform that action at this time.
0 commit comments