Skip to content

Commit

Permalink
Use $stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 24, 2011
1 parent 22dc639 commit e1e5de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/warnings.rb
Expand Up @@ -6,9 +6,9 @@

at_exit do
if (!$WARNINGS.empty? && ($VERBOSE || $DEBUG))
STDERR.puts
STDERR.puts "Warnings:"
STDERR.puts
$stderr.puts
$stderr.puts "Warnings:"
$stderr.puts

unique_warnings = {}

Expand All @@ -18,6 +18,6 @@

unqiue_warnings.each { |warning| warning.print }

STDERR.puts
$stderr.puts
end
end

0 comments on commit e1e5de5

Please sign in to comment.