aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
diff options
context:
space:
mode:
authorMax Howell2012-08-29 22:25:29 -0400
committerMax Howell2012-08-29 22:25:29 -0400
commit28d795032a52cd5f0f3a547b067108fe89ca8b57 (patch)
treed42eefec7f8303f9a980de5445a7208889e37d1b /Library/Homebrew/extend/fileutils.rb
parent7a95865ecb226e4755a668cf2e751a5c87cd9cb4 (diff)
downloadhomebrew-28d795032a52cd5f0f3a547b067108fe89ca8b57.tar.bz2
Don't catch build errors
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
-rw-r--r--Library/Homebrew/extend/fileutils.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 60f795700..6a6d8585a 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -15,11 +15,10 @@ module FileUtils extend self
# prefix if they need to.
tmp = ENV['HOMEBREW_TEMP'].chuzzle || '/tmp'
tempd = `/usr/bin/mktemp -d #{tmp}/brew-#{name}-#{version}-XXXX`.chuzzle
+ raise "Failed to create sandbox" if tempd.nil?
prevd = pwd
cd tempd
yield
- rescue StandardError
- raise "Failed to create sandbox"
ensure
cd prevd if prevd
ignore_interrupts{ rm_r tempd } if tempd