From 0ac668d261fc6c0adec89d7befa21e8de880b0f9 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 18 Aug 2016 18:35:15 -0500 Subject: [PATCH] =?UTF-8?q?[Plugin]=20Don=E2=80=99t=20print=20GemfileError?= =?UTF-8?q?s=20twice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bundler/plugin.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index 015be99af80..8fb41193237 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -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