doctor: always print to stderr

This can help to solve the broken layout of doctor.out in brew gist-logs
This commit is contained in:
Xu Cheng 2015-09-30 16:20:18 +08:00
parent 30795ddc29
commit 6240e896b2

View File

@ -1291,14 +1291,14 @@ module Homebrew
end end
unless out.nil? || out.empty? unless out.nil? || out.empty?
if first_warning if first_warning
puts <<-EOS.undent $stderr.puts <<-EOS.undent
#{Tty.white}Please note that these warnings are just used to help the Homebrew maintainers #{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 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} working fine: please don't worry and just ignore them. Thanks!#{Tty.reset}
EOS EOS
end end
puts $stderr.puts
opoo out opoo out
Homebrew.failed = true Homebrew.failed = true
first_warning = false first_warning = false