lib/bundler.rb in bundler-1.14.4 vs lib/bundler.rb in bundler-1.14.5
- old
+ new
@@ -174,10 +174,10 @@
tmp_home_path.chmod(0o777)
end
tmp_home_path.join(login).tap(&:mkpath)
end
rescue => e
- raise "#{warning}\nBundler also failed to create a temporary home directory at `#{path}':\n#{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")
end