Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[Plugin] Don’t print GemfileErrors twice
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 25, 2016
1 parent bb7d870 commit 0ac668d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bundler/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def gemfile_install(gemfile = nil, &inline)

save_plugins plugins, installed_specs, builder.inferred_plugins
rescue => e
Bundler.ui.error "Failed to install plugin: #{e.message}\n #{e.backtrace[0]}"
unless e.is_a?(GemfileError)
Bundler.ui.error "Failed to install plugin: #{e.message}\n #{e.backtrace[0]}"
end
raise
end

Expand Down

0 comments on commit 0ac668d

Please sign in to comment.