summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-09-26 15:53:39 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-10-02 14:34:55 +0900
commit49483904d8fcac3bd5ef9e897279563235583f4a (patch)
treef4be4b9f4ce27d1f3a719afef76b6544f80e4c19 /spec/ruby/core
parent02d50d9cb17e8daccf788347593e97cae354ba4e (diff)
[rubygems/rubygems] Make sure MissingSpecVersionError#to_s prints exception message
Gem command loading errors rely on `#to_s` on the raised exception, but in the case of `MissingSpecVersionError` that was only the exception name, making it printed twice and no message at all. Before: ``` ERROR: Loading command: install (Gem::MissingSpecVersionError) Gem::MissingSpecVersionError ``` After: ``` ERROR: Loading command: install (Gem::MissingSpecVersionError) Could not find 'io-wait' (>= 0.a) - did find: [io-wait-0.3.0-java] Checked in 'GEM_PATH=/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1.1/gems/system' , execute `gem env` for more information ``` https://github.com/rubygems/rubygems/commit/d06944bb2f
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions