From 5d4034d5b263b0a63e5892fca416de10812b79d0 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 2 Aug 2014 16:59:52 -0300 Subject: utils: use the $stderr global variable. For easier capturing. Closes #31303. Signed-off-by: Mike McQuaid --- Library/Homebrew/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/utils.rb') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 412a7dbc0..66dcc1bd9 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -54,11 +54,11 @@ def oh1 title end def opoo warning - STDERR.puts "#{Tty.red}Warning#{Tty.reset}: #{warning}" + $stderr.puts "#{Tty.red}Warning#{Tty.reset}: #{warning}" end def onoe error - STDERR.puts "#{Tty.red}Error#{Tty.reset}: #{error}" + $stderr.puts "#{Tty.red}Error#{Tty.reset}: #{error}" end def ofail error -- cgit v1.2.3