aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Bond2014-08-02 16:59:52 -0300
committerMike McQuaid2014-08-04 13:17:10 +0100
commit22a98624d2d249add58c31833e1b4e452c242d03 (patch)
treeb04cc2eabc613c47c918115ce38b935291981cd2
parent2559ee76b268ac28ac952e7a10ad2b78a6578425 (diff)
downloadbrew-22a98624d2d249add58c31833e1b4e452c242d03.tar.bz2
utils: use the $stderr global variable.
For easier capturing. Closes Homebrew/homebrew#31303. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
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