Skip to content
Snippets Groups Projects
Commit 60178113 authored by Misty De Meo's avatar Misty De Meo
Browse files

doctor: handle non-extent methods passed as arguments

parent d3ab27f8
No related branches found
No related tags found
No related merge requests found
......@@ -1207,7 +1207,13 @@ module Homebrew
first_warning = true
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?
if first_warning
puts <<-EOS.undent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment