1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

un.rb: suppress warning

* lib/un.rb (wait_writable): show error messages only if -v is given.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-02-22 00:05:55 +00:00
parent cc367fb326
commit d0a4131709

View file

@ -246,8 +246,10 @@ def wait_writable
break
rescue Errno::EACCES => e
raise if n and (n -= 1) <= 0
puts e
STDOUT.flush
if verbose
puts e
STDOUT.flush
end
sleep wait
retry
end