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:
parent
cc367fb326
commit
d0a4131709
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue