diff options
| author | Jack Nagel | 2015-02-03 20:26:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-03 20:26:57 -0500 |
| commit | c3796cd121c2cb8e9a04a620ba0ebd2c6806e838 (patch) | |
| tree | 8aebb110975f02b8eb6dc0f8e0fa1c489e485d8b /Library/Homebrew | |
| parent | 52272a3528417e04e453cb786f1e59df5711e515 (diff) | |
| download | homebrew-c3796cd121c2cb8e9a04a620ba0ebd2c6806e838.tar.bz2 | |
`brew list foo` should always error when foo is not installed
Fixes #36484.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/list.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 43d667dde..6dc0636dc 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -8,7 +8,10 @@ module Homebrew # Unbrewed uses the PREFIX, which will exist # Things below use the CELLAR, which doesn't until the first formula is installed. - return unless HOMEBREW_CELLAR.exist? + unless HOMEBREW_CELLAR.exist? + raise NoSuchKegError.new(ARGV.named.first) if ARGV.named.any? + return + end if ARGV.include? '--pinned' or ARGV.include? '--versions' filtered_list |
