summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli/binstubs.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/cli/binstubs.rb b/lib/bundler/cli/binstubs.rb
index 3fd74038b0..05cad4d147 100644
--- a/lib/bundler/cli/binstubs.rb
+++ b/lib/bundler/cli/binstubs.rb
@@ -19,7 +19,10 @@ module Bundler
gems.each do |gem_name|
spec = installer.specs.find{|s| s.name == gem_name }
- raise GemNotFound, not_found_message(gem_name, Bundler.definition.specs) unless spec
+ unless spec
+ raise GemNotFound, Bundler::CLI::Common.gem_not_found_message(
+ gem_name, Bundler.definition.specs)
+ end
if spec.name == "bundler"
Bundler.ui.warn "Sorry, Bundler can only be run via Rubygems."
@@ -28,5 +31,6 @@ module Bundler
end
end
end
+
end
end