summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2018-02-25 22:55:41 +0100
committerSamuel Giddins <segiddins@segiddins.me>2018-03-17 10:53:34 -0700
commit1e3c630d3f968c9b4c9b8996b940be4694d58544 (patch)
tree96a5add08473429feb61ba46441aa1dc88fcba58 /lib/bundler.rb
parent7f4c1a81b7b92e234fce0e3592d27c396d2451ac (diff)
downloadbundler-1e3c630d3f968c9b4c9b8996b940be4694d58544.tar.gz
Fix some rescue calls that do not specifiy error type.
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 8fc8da6dcb..9056c1aa42 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -189,7 +189,7 @@ module Bundler
end
tmp_home_path.join(login).tap(&:mkpath)
end
- rescue => e
+ rescue RuntimeError => e
raise e.exception("#{warning}\nBundler also failed to create a temporary home directory at `#{path}':\n#{e}")
end
@@ -426,7 +426,7 @@ EOF
def load_marshal(data)
Marshal.load(data)
- rescue => e
+ rescue StandardError => e
raise MarshalError, "#{e.class}: #{e.message}"
end