Skip to content

Commit

Permalink
cmd/install: output missing formula name.
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
MikeMcQuaid committed Jul 12, 2021
1 parent fc5265a commit 0682239
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/cmd/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def install
return
end

opoo e
ohai "Searching for similarly named formulae..."
formulae_search_results = search_formulae(e.name)
case formulae_search_results.length
Expand Down

0 comments on commit 0682239

Please sign in to comment.