From 1e3c630d3f968c9b4c9b8996b940be4694d58544 Mon Sep 17 00:00:00 2001 From: utilum Date: Sun, 25 Feb 2018 22:55:41 +0100 Subject: Fix some rescue calls that do not specifiy error type. --- lib/bundler/installer/gem_installer.rb | 2 +- lib/bundler/installer/parallel_installer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bundler/installer') diff --git a/lib/bundler/installer/gem_installer.rb b/lib/bundler/installer/gem_installer.rb index a38f8d95be..d60d636949 100644 --- a/lib/bundler/installer/gem_installer.rb +++ b/lib/bundler/installer/gem_installer.rb @@ -21,7 +21,7 @@ module Bundler raise rescue Errno::ENOSPC return false, out_of_space_message - rescue => e + rescue StandardError => e return false, specific_failure_message(e) end diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb index e6e81fddff..61ee001538 100644 --- a/lib/bundler/installer/parallel_installer.rb +++ b/lib/bundler/installer/parallel_installer.rb @@ -161,7 +161,7 @@ module Bundler ) success, message = begin gem_installer.install_from_spec - rescue => e + rescue RuntimeError => e raise e, "#{e}\n\n#{require_tree_for_spec(spec_install.spec)}" end if success -- cgit v1.2.1