diff options
author | utilum <oz@utilum.com> | 2018-02-25 22:55:41 +0100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-03-17 10:53:34 -0700 |
commit | 1e3c630d3f968c9b4c9b8996b940be4694d58544 (patch) | |
tree | 96a5add08473429feb61ba46441aa1dc88fcba58 /lib/bundler/installer | |
parent | 7f4c1a81b7b92e234fce0e3592d27c396d2451ac (diff) | |
download | bundler-1e3c630d3f968c9b4c9b8996b940be4694d58544.tar.gz |
Fix some rescue calls that do not specifiy error type.
Diffstat (limited to 'lib/bundler/installer')
-rw-r--r-- | lib/bundler/installer/gem_installer.rb | 2 | ||||
-rw-r--r-- | lib/bundler/installer/parallel_installer.rb | 2 |
2 files changed, 2 insertions, 2 deletions
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 |