aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 93c0e398e..d7f853851 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -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