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
|
first_warning = true
|
||||||
methods.each do |method|
|
methods.each do |method|
|
||||||
out = checks.send(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?
|
unless out.nil? or out.empty?
|
||||||
if first_warning
|
if first_warning
|
||||||
puts <<-EOS.undent
|
puts <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user