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)
|
info_formula Formulary.find_with_priority(f)
|
||||||
end
|
end
|
||||||
rescue FormulaUnavailableError => e
|
rescue FormulaUnavailableError => e
|
||||||
|
ofail e.message
|
||||||
# No formula with this name, try a missing formula lookup
|
# No formula with this name, try a missing formula lookup
|
||||||
if (reason = Homebrew::MissingFormula.reason(f))
|
if (reason = Homebrew::MissingFormula.reason(f))
|
||||||
ofail "#{e.message}\n#{reason}"
|
$stderr.puts reason
|
||||||
else
|
|
||||||
ofail e.message
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user