doctor: handle non-extent methods passed as arguments
This commit is contained in:
parent
d3ab27f860
commit
6017811397
@ -1207,7 +1207,13 @@ module Homebrew
|
||||
|
||||
first_warning = true
|
||||
methods.each do |method|
|
||||
begin
|
||||
out = checks.send(method)
|
||||
rescue NoMethodError
|
||||
Homebrew.failed = true
|
||||
puts "No check available by the name: #{method}"
|
||||
next
|
||||
end
|
||||
unless out.nil? or out.empty?
|
||||
if first_warning
|
||||
puts <<-EOS.undent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user