diff --git a/rb/lib/selenium/server.rb b/rb/lib/selenium/server.rb index ad9a942e42bc2..11f214dff9758 100644 --- a/rb/lib/selenium/server.rb +++ b/rb/lib/selenium/server.rb @@ -142,7 +142,7 @@ def download_server(uri, destination) if (segment_count % 15).zero? percent = progress.fdiv(total) * 100 - print "#{CL_RESET}Downloading #{download_file_name}: #{percent.to_i}% (#{progress} / #{total})" + print "#{CL_RESET}Downloading #{destination.path}: #{percent.to_i}% (#{progress} / #{total})" segment_count = 0 end @@ -150,7 +150,7 @@ def download_server(uri, destination) end end - raise Error, "#{resp.code} for #{download_file_name}" unless resp.is_a? Net::HTTPSuccess + raise Error, "#{resp.code} for #{destination.path}" unless resp.is_a? Net::HTTPSuccess end end end