diff options
| author | Jack Nagel | 2013-11-02 22:52:24 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-11-02 22:52:24 -0500 | 
| commit | a2d9271bda21ebdc30cb9ab9f40e79b793a2a6f8 (patch) | |
| tree | 843d3a13bbbf4a0f08c63e6c0eee3b85a12179f6 /Library/Homebrew/formula.rb | |
| parent | aafae73cf980b59c34a7ec9c13a4ed6adc6180b3 (diff) | |
| download | brew-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.rb | 4 | 
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  | 
