diff options
author | bronzdoc <[email protected]> | 2020-04-26 11:54:32 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-05-08 14:13:29 +0900 |
commit | b454b4e3107921348bc13f8c024239f82965ed4a () | |
tree | 58993add4ded6c8aaba305b1b84b6f97356a0c45 /lib/rubygems/errors.rb | |
parent | 4a417b08aeaf296238059e6abdb465c324073e15 (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.rb | 5 |
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 |