cmd/install: output missing formula name.

Otherwise if there's no search results then there's no indication what
was being searched for:

```
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
```
This commit is contained in:
Mike McQuaid 2021-07-12 12:07:10 +01:00
parent fc5265ae5c
commit 0682239298
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -253,6 +253,7 @@ module Homebrew
return return
end end
opoo e
ohai "Searching for similarly named formulae..." ohai "Searching for similarly named formulae..."
formulae_search_results = search_formulae(e.name) formulae_search_results = search_formulae(e.name)
case formulae_search_results.length case formulae_search_results.length