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
commit939205b7286ec6b40e1626eb3cdbd27fc59ed6e9 (patch)
tree4b9c12733439869305a0d13f20516a540406ae1d /Library
parent13451b7847a1e02f89303db6d7760bb78eb08066 (diff)
downloadhomebrew-939205b7286ec6b40e1626eb3cdbd27fc59ed6e9.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