aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Bond2014-08-02 16:59:52 -0300
committerMike McQuaid2014-08-04 13:17:10 +0100
commit5d4034d5b263b0a63e5892fca416de10812b79d0 (patch)
tree5060dddb90ab8c2cf04e51cc1237df7fb1ee6455
parent1f124f09c152323358e6a2eeae114ece471bb728 (diff)
downloadhomebrew-5d4034d5b263b0a63e5892fca416de10812b79d0.tar.bz2
utils: use the $stderr global variable.
For easier capturing. Closes #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