diff options
| -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 |
