[前][次][番号順一覧][スレッド一覧]

ruby-changes:27316

From: nobu <ko1@a...>
Date: Fri, 22 Feb 2013 09:06:14 +0900 (JST)
Subject: [ruby-changes:27316] nobu:r39368 (trunk): un.rb: suppress warning

nobu	2013-02-22 09:05:55 +0900 (Fri, 22 Feb 2013)

  New Revision: 39368

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39368

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

  Modified files:
    trunk/lib/un.rb

Index: lib/un.rb
===================================================================
--- lib/un.rb	(revision 39367)
+++ lib/un.rb	(revision 39368)
@@ -246,8 +246,10 @@ def wait_writable https://github.com/ruby/ruby/blob/trunk/lib/un.rb#L246
         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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]