diff options
author | Andre Arko <andre@arko.net> | 2014-08-23 21:23:29 -0500 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-08-23 22:14:01 -0500 |
commit | e9ec6e3e8b8226d5f8dc18b04ef3019c89982d14 (patch) | |
tree | e079a348a5e7345ce864e08b447d6f999fa26489 /lib/bundler | |
parent | 938e30d373f98750e9f5cb3c7f341e69d64494aa (diff) | |
download | bundler-e9ec6e3e8b8226d5f8dc18b04ef3019c89982d14.tar.gz |
Friendly error on ENOSPC
fixes #3153
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/installer.rb | 3 |
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) |