From 6240e896b2b3405dd3ffdf892b60e5eed05707b1 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 30 Sep 2015 16:20:18 +0800 Subject: doctor: always print to stderr This can help to solve the broken layout of doctor.out in brew gist-logs --- Library/Homebrew/cmd/doctor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index a93b3ace4..c79a54a7e 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -1291,14 +1291,14 @@ module Homebrew end unless out.nil? || out.empty? 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 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 - puts + $stderr.puts opoo out Homebrew.failed = true first_warning = false -- cgit v1.2.3