Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn developers when uninstalling a dependency #1498

Merged
merged 4 commits into from
Nov 15, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
utils: fix capture_stderr style
  • Loading branch information
alyssais committed Nov 14, 2016
commit 14099ffaf3016f126ad95c869ac5dbecf5837eee
3 changes: 2 additions & 1 deletion Library/Homebrew/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def ignore_interrupts(opt = nil)
end

def capture_stderr
old, $stderr = $stderr, StringIO.new
old = $stderr
$stderr = StringIO.new
yield
$stderr.string
ensure
Expand Down