lib/bundler.rb in bundler-1.16.6 vs lib/bundler.rb in bundler-1.17.0.pre.1

- old
+ new

@@ -189,11 +189,11 @@ tmp_home_path.mkpath tmp_home_path.chmod(0o777) end tmp_home_path.join(login).tap(&:mkpath) end - rescue RuntimeError => e + rescue => e raise e.exception("#{warning}\nBundler also failed to create a temporary home directory at `#{path}':\n#{e}") end def user_bundle_path Pathname.new(user_home).join(".bundle") @@ -414,10 +414,10 @@ end end def load_marshal(data) Marshal.load(data) - rescue StandardError => e + rescue => e raise MarshalError, "#{e.class}: #{e.message}" end def load_gemspec(file, validate = false) @gemspec_cache ||= {}