diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-22 00:05:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-22 00:05:55 +0000 |
commit | d0a4131709edc8d3fda4ab6d0212b26856213c8b (patch) | |
tree | f4ba257c83a565bb0b48c2257113ddb442ffde53 /lib/un.rb | |
parent | cc367fb32689bf94a20c136519d537660084ae56 (diff) | |
download | bundler-d0a4131709edc8d3fda4ab6d0212b26856213c8b.tar.gz |
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
Diffstat (limited to 'lib/un.rb')
-rw-r--r-- | lib/un.rb | 6 |
1 files changed, 4 insertions, 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 |