diff options
| author | Jack Nagel | 2014-10-20 03:02:32 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-10-20 03:15:12 -0500 | 
| commit | 80eb5924689974a7fac6e64e619602838aed3ac8 (patch) | |
| tree | 8bda822467f21befd03229e94e7b40460e46837c /Library/Homebrew/cmd/install.rb | |
| parent | 4e8c0a0496a485de330e0898fa24736789909e57 (diff) | |
| download | homebrew-80eb5924689974a7fac6e64e619602838aed3ac8.tar.bz2 | |
Drop pointless use of CannotInstallFormulaError
These are not caught anywhere, just raise the string. Missed in
1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 94f9e3a78..b85092467 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -28,7 +28,7 @@ module Homebrew        ARGV.formulae.each do |f|          # Building head-only without --HEAD is an error          if not ARGV.build_head? and f.stable.nil? -          raise CannotInstallFormulaError, <<-EOS.undent +          raise <<-EOS.undent            #{f.name} is a head-only formula            Install with `brew install --HEAD #{f.name}`            EOS @@ -36,7 +36,7 @@ module Homebrew          # Building stable-only with --HEAD is an error          if ARGV.build_head? and f.head.nil? -          raise CannotInstallFormulaError, "No head is defined for #{f.name}" +          raise "No head is defined for #{f.name}"          end        end | 
