mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
test: improve "formula not installed" error text
Closes #11779. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
1 parent
4748b07193
commit
cf327aece7
1 file changed
+2
-2
@@ -7,12 +7,12 @@ ENV.setup_build_environment
|
||||
|
||||
module Homebrew extend self
|
||||
def test
|
||||
raise KegUnspecifiedError if ARGV.named.empty?
|
||||
raise FormulaUnspecifiedError if ARGV.named.empty?
|
||||
|
||||
ARGV.formulae.each do |f|
|
||||
# Cannot test uninstalled formulae
|
||||
unless f.installed?
|
||||
puts "#{f.name} not installed"
|
||||
puts "Testing requires the latest version of #{f.name}"
|
||||
Homebrew.failed = true
|
||||
next
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user