summaryrefslogtreecommitdiff
path: root/lib/rubygems/specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r--lib/rubygems/specification.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index ad988a5a1e..bcb5da52a3 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -1395,7 +1395,11 @@ class Gem::Specification < Gem::BasicSpecification
raise e
end
- specs = spec_dep.to_specs
+ begin
+ specs = spec_dep.to_specs
+ rescue Gem::MissingSpecError => e
+ raise Gem::MissingSpecError.new(e.name, e.requirement, "at: #{self.spec_file}")
+ end
if specs.size == 1
specs.first.activate