aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/doctor.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-06-17 14:25:43 +0100
committerMike McQuaid2014-06-20 11:14:35 +0100
commit8c6dd5bf3e132b93a6116c9f15515cf64853b7b3 (patch)
treee623c5447d3abac40c012c9d96c3c95edc8d352e /Library/Homebrew/cmd/doctor.rb
parent5f88f5a706a152eba8ab841987efb923cdea1ba4 (diff)
downloadhomebrew-8c6dd5bf3e132b93a6116c9f15515cf64853b7b3.tar.bz2
doctor: add caveats to avoid scaring people.
Sporadically people ask to whitelist doctor warnings or file issues when there's nothing actually wrong. Help reassure such people with a friendly message. Closes #30230. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/doctor.rb')
-rw-r--r--Library/Homebrew/cmd/doctor.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index b00ea583d..eaf380c59 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -1130,8 +1130,16 @@ module Homebrew
methods.each do |method|
out = checks.send(method)
unless out.nil? or out.empty?
+ if first_warning
+ puts <<-EOS.undent
+ #{Tty.white}Please note that these warnings are just used to help the Homebrew maintainers
+ with debugging if you file an issue. If everything you use Homebrew for is
+ working fine: please don't worry and just ignore them. Thanks!#{Tty.reset}
+ EOS
+ end
+
lines = out.to_s.split('\n')
- puts unless first_warning
+ puts
opoo lines.shift
Homebrew.failed = true
puts lines