aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-02 22:52:24 -0500
committerJack Nagel2013-11-02 22:52:24 -0500
commita2d9271bda21ebdc30cb9ab9f40e79b793a2a6f8 (patch)
tree843d3a13bbbf4a0f08c63e6c0eee3b85a12179f6 /Library/Homebrew/formula.rb
parentaafae73cf980b59c34a7ec9c13a4ed6adc6180b3 (diff)
downloadbrew-a2d9271bda21ebdc30cb9ab9f40e79b793a2a6f8.tar.bz2
Remove intermediate exception in Formula#system
Now that ErrorDuringExecution is only raised in one place, we can just raise the BuildError directly instead.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index a760e7fc2..b8cf10e00 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -609,11 +609,9 @@ class Formula
f.puts
require 'cmd/--config'
Homebrew.write_build_config(f)
- raise ErrorDuringExecution
+ raise BuildError.new(self, cmd, args, $?)
end
end
- rescue ErrorDuringExecution
- raise BuildError.new(self, cmd, args, $?)
ensure
rd.close if rd and not rd.closed?
ENV.update(removed_ENV_variables) if removed_ENV_variables