Skip to content

Commit

Permalink
Warning should use write to print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Nov 19, 2018
1 parent ef09a65 commit 364cd29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/ruby/core/warning.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def warn(message)
unless message.encoding.ascii_compatible?
raise Encoding::CompatibilityError, "ASCII incompatible encoding: #{message.encoding}"
end
$stderr.print message
$stderr.write message
nil
end

end

0 comments on commit 364cd29

Please sign in to comment.