aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-08-29 22:25:29 -0400
committerMax Howell2012-08-29 22:25:29 -0400
commitfc9b18c291079562497da1f88a890852546e5aae (patch)
tree70db6c6bc796b4616cda3dd777f1a318f784edb3 /Library
parent3fbe631b02617323964e178e847d8a58ee8502f3 (diff)
downloadbrew-fc9b18c291079562497da1f88a890852546e5aae.tar.bz2
Don't catch build errors
Diffstat (limited to 'Library')
-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