Drop pointless use of CannotInstallFormulaError
These are not caught anywhere, just raise the string. Missed in 1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c.
This commit is contained in:
parent
7a06bc067e
commit
8c6efd8993
@ -28,7 +28,7 @@ module Homebrew
|
|||||||
ARGV.formulae.each do |f|
|
ARGV.formulae.each do |f|
|
||||||
# Building head-only without --HEAD is an error
|
# Building head-only without --HEAD is an error
|
||||||
if not ARGV.build_head? and f.stable.nil?
|
if not ARGV.build_head? and f.stable.nil?
|
||||||
raise CannotInstallFormulaError, <<-EOS.undent
|
raise <<-EOS.undent
|
||||||
#{f.name} is a head-only formula
|
#{f.name} is a head-only formula
|
||||||
Install with `brew install --HEAD #{f.name}`
|
Install with `brew install --HEAD #{f.name}`
|
||||||
EOS
|
EOS
|
||||||
@ -36,7 +36,7 @@ module Homebrew
|
|||||||
|
|
||||||
# Building stable-only with --HEAD is an error
|
# Building stable-only with --HEAD is an error
|
||||||
if ARGV.build_head? and f.head.nil?
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user