aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-03-31 15:18:47 -0500
committerJack Nagel2013-03-31 15:20:12 -0500
commitd29488ea60ca9b41fa89a4a8dc5b3adb050ea5b0 (patch)
tree4207ff7a20f7e6ba42d282663b66741e7e7dfcec
parent6c51a4b4556458806b033d446d12ce581449721f (diff)
downloadhomebrew-d29488ea60ca9b41fa89a4a8dc5b3adb050ea5b0.tar.bz2
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.
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 2879e6a11..81068e9ef 100644
--- a/Library/Homebrew/utils.rb
+++ b/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