diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-11-11 10:44:07 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2021-11-22 10:51:35 +0900 |
| commit | e262272b6a50c1a92cdcfee684e82f9242ef8171 (patch) | |
| tree | d7baf0c94ed9670d7ef097ce0390ca543ee97b33 /lib/rubygems/errors.rb | |
| parent | 24f911f474e11560af5fbd0f637f4c0ded23f604 (diff) | |
Merge RubyGems 3.2.29 and Bundler 2.2.29
Diffstat (limited to 'lib/rubygems/errors.rb')
| -rw-r--r-- | lib/rubygems/errors.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/errors.rb b/lib/rubygems/errors.rb index abee20651e..86f0d1da14 100644 --- a/lib/rubygems/errors.rb +++ b/lib/rubygems/errors.rb @@ -171,8 +171,7 @@ module Gem # An English description of the error. def wordy - @source.uri.password = 'REDACTED' unless @source.uri.password.nil? - "Unable to download data from #{@source.uri} - #{@error.message}" + "Unable to download data from #{Gem::Uri.new(@source.uri).redacted} - #{@error.message}" end ## |
