summaryrefslogtreecommitdiff
path: root/lib/rubygems/errors.rb
diff options
context:
space:
mode:
authorbronzdoc <[email protected]>2020-04-26 11:54:32 -0600
committerHiroshi SHIBATA <[email protected]>2020-05-08 14:13:29 +0900
commitb454b4e3107921348bc13f8c024239f82965ed4a ()
tree58993add4ded6c8aaba305b1b84b6f97356a0c45 /lib/rubygems/errors.rb
parent4a417b08aeaf296238059e6abdb465c324073e15 (diff)
[rubygems/rubygems] Make MissingSpecError accept an extra error message
https://.com/rubygems/rubygems/commit/b23d2421df
Notes: Merged: https://.com/ruby/ruby/pull/3092
-rw-r--r--lib/rubygems/errors.rb5
1 files changed, 3 insertions, 2 deletions
@@ -28,14 +28,15 @@ module Gem
# superclass Gem::LoadError to catch all types of load errors.
class MissingSpecError < Gem::LoadError
- def initialize(name, requirement)
@name = name
@requirement = requirement
end
def message # :nodoc:
build_message +
- "Checked in 'GEM_PATH=#{Gem.path.join(File::PATH_SEPARATOR)}', execute `gem env` for more information"
end
private