info: immediately print FormulaUnavailableError.
This commit is contained in:
parent
d0bbadde22
commit
e55f3a0cc5
@ -55,11 +55,10 @@ module Homebrew
|
||||
info_formula Formulary.find_with_priority(f)
|
||||
end
|
||||
rescue FormulaUnavailableError => e
|
||||
ofail e.message
|
||||
# No formula with this name, try a missing formula lookup
|
||||
if (reason = Homebrew::MissingFormula.reason(f))
|
||||
ofail "#{e.message}\n#{reason}"
|
||||
else
|
||||
ofail e.message
|
||||
$stderr.puts reason
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user