install: immediately print FormulaUnavailableError.
This commit is contained in:
parent
e55f3a0cc5
commit
c458ffbd24
@ -206,12 +206,16 @@ module Homebrew
|
||||
# formula was found, but there's a problem with its implementation).
|
||||
ofail e.message
|
||||
rescue FormulaUnavailableError => e
|
||||
if (reason = Homebrew::MissingFormula.reason(e.name))
|
||||
ofail "#{e.message}\n#{reason}"
|
||||
elsif e.name == "updog"
|
||||
if e.name == "updog"
|
||||
ofail "What's updog?"
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
ofail e.message
|
||||
if (reason = Homebrew::MissingFormula.reason(e.name))
|
||||
$stderr.puts reason
|
||||
return
|
||||
end
|
||||
|
||||
query = query_regexp(e.name)
|
||||
|
||||
@ -246,7 +250,6 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def check_ppc
|
||||
case Hardware::CPU.type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user