Permalink
Browse files

onoe and opoo print to stderr

This may result in some undesired output for things that suppress
stdout, but we'll fix those as we go.

Fixes #18650.
  • Loading branch information...
1 parent 6c51a4b commit d29488ea60ca9b41fa89a4a8dc5b3adb050ea5b0 @jacknagel jacknagel committed Mar 31, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 Library/Homebrew/utils.rb
@@ -50,13 +50,13 @@ def oh1 title
end
def opoo warning
- puts "#{Tty.red}Warning#{Tty.reset}: #{warning}"
+ STDERR.puts "#{Tty.red}Warning#{Tty.reset}: #{warning}"
end
def onoe error
- lines = error.to_s.split'\n'
- puts "#{Tty.red}Error#{Tty.reset}: #{lines.shift}"
- puts lines unless lines.empty?
+ lines = error.to_s.split("\n")
+ STDERR.puts "#{Tty.red}Error#{Tty.reset}: #{lines.shift}"
+ STDERR.puts lines unless lines.empty?
end
def ofail error

0 comments on commit d29488e

Please sign in to comment.