aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-08-23 21:23:29 -0500
committerAndre Arko <andre@arko.net>2014-08-23 22:14:01 -0500
commite9ec6e3e8b8226d5f8dc18b04ef3019c89982d14 (patch)
treee079a348a5e7345ce864e08b447d6f999fa26489
parent938e30d373f98750e9f5cb3c7f341e69d64494aa (diff)
downloadbundler-e9ec6e3e8b8226d5f8dc18b04ef3019c89982d14.tar.gz
Friendly error on ENOSPC
fixes #3153
-rw-r--r--lib/bundler/installer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index ed743d40..a4747c61 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -118,6 +118,9 @@ module Bundler
end
post_install_message
+ rescue Errno::ENOSPC
+ raise Bundler::InstallError, "Your disk is out of space. Free some " \
+ "space to be able to install your bundle."
rescue Exception => e
# if install hook failed or gem signature is bad, just die
raise e if e.is_a?(Bundler::InstallHookError) || e.is_a?(Bundler::SecurityError)