aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 699b57552..03d9dde62 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -546,10 +546,11 @@ protected
f.puts
require 'cmd/--config'
Homebrew.write_build_config(f)
- raise BuildError.new(self, cmd, args, $?)
+ raise ErrorDuringExecution
end
end
-
+ rescue ErrorDuringExecution => e
+ raise BuildError.new(self, cmd, args, $?)
ensure
f.close if f
removed_ENV_variables.each do |key, value|