summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-14 18:50:31 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-14 18:52:22 +0100
commit83d22e7deaf5c3347db4961a397a6a929ed66b73 (patch)
tree350a43a16dcda7e51e90e5b8d2613eeb90056eb9
parentf5358681deda96e3862c6acae942fbf993f7b3ef (diff)
downloadbundler-new_info_specs.tar.gz
Don't raise if users choose to exitnew_info_specs
Just exit.
-rw-r--r--lib/bundler/cli/info.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb
index 4bc66932d6..4733675e8c 100644
--- a/lib/bundler/cli/info.rb
+++ b/lib/bundler/cli/info.rb
@@ -16,9 +16,10 @@ module Bundler
spec = spec_for_gem(gem_name)
- spec_not_found(gem_name) unless spec
- return print_gem_path(spec) if @options[:path]
- print_gem_info(spec)
+ if spec
+ return print_gem_path(spec) if @options[:path]
+ print_gem_info(spec)
+ end
end
private