diff options
| author | Xu Cheng | 2015-09-30 16:20:18 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-09-30 16:20:18 +0800 |
| commit | 6240e896b2b3405dd3ffdf892b60e5eed05707b1 (patch) | |
| tree | 9986e8b071793d772d7da8db61e671c804295154 | |
| parent | 30795ddc29b23fb9e9caf9d32188bf1b32c7b02f (diff) | |
| download | brew-6240e896b2b3405dd3ffdf892b60e5eed05707b1.tar.bz2 | |
doctor: always print to stderr
This can help to solve the broken layout of doctor.out in brew gist-logs
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
