utils: use the $stderr global variable.
For easier capturing. Closes Homebrew/homebrew#31303. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
2559ee76b2
commit
22a98624d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user