aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2014-11-26 17:54:53 -0800
committerMisty De Meo2014-11-26 17:54:53 -0800
commit6017811397b7ee0797fe452309e37fb5018689a5 (patch)
tree50689278171effcc0e2bb2f75d81650de19c7092 /Library
parentd3ab27f860a7acd95852e685f7f55580326252b1 (diff)
downloadbrew-6017811397b7ee0797fe452309e37fb5018689a5.tar.bz2
doctor: handle non-extent methods passed as arguments
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