diff options
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index a3d7b6452..d1a50e887 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -36,14 +36,9 @@ module Homebrew extend self end unless ARGV.force? perform_preinstall_checks + begin - ARGV.formulae.each do |f| - begin - install_formula(f) - rescue CannotInstallFormulaError => e - ofail e.message - end - end + ARGV.formulae.each { |f| install_formula(f) } rescue FormulaUnavailableError => e ofail e.message require 'cmd/search' @@ -124,6 +119,7 @@ module Homebrew extend self # another formula. In that case, don't generate an error, just move on. rescue FormulaAlreadyInstalledError => e opoo e.message - # Ignore CannotInstallFormulaError and let caller handle it. + rescue CannotInstallFormulaError => e + ofail e.message end end |
