diff options
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index e6772a105..c6ae22294 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -26,12 +26,19 @@ module Homebrew extend self      end unless ARGV.force?      perform_preinstall_checks -    ARGV.formulae.each do |f| -      begin -        install_formula(f) -      rescue CannotInstallFormulaError => e -        ofail e.message +    begin +      ARGV.formulae.each do |f| +        begin +          install_formula(f) +        rescue CannotInstallFormulaError => e +          ofail e.message +        end        end +    rescue FormulaUnavailableError => e +      ofail e.message +      require 'cmd/search' +      puts 'Searching taps...' +      puts_columns(search_taps(query_regexp(e.name)))      end    end | 
