diff options
| author | Mike McQuaid | 2017-03-22 21:55:22 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-03-23 08:39:29 +0000 |
| commit | e55f3a0cc58cd37f28791d19d200d4e3b6bb11be (patch) | |
| tree | e42167342a64e4e3a74a59ec1f12f9b8aa58f778 /Library | |
| parent | d0bbadde222e0930d411c14fbfa14393db797e4c (diff) | |
| download | brew-e55f3a0cc58cd37f28791d19d200d4e3b6bb11be.tar.bz2 | |
info: immediately print FormulaUnavailableError.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 7e1815556..e7ad6821d 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -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 |
