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

ruby-changes:23413

From: mame <ko1@a...>
Date: Tue, 24 Apr 2012 21:55:23 +0900 (JST)
Subject: [ruby-changes:23413] mame:r35464 (trunk): * lib/net/smtp.rb (check_continue): raise an error with an explanatory

mame	2012-04-24 21:55:13 +0900 (Tue, 24 Apr 2012)

  New Revision: 35464

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

  Log:
    * lib/net/smtp.rb (check_continue): raise an error with an explanatory
      message.  [ruby-core:35854] [Feature #4598]

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/smtp.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35463)
+++ ChangeLog	(revision 35464)
@@ -1,3 +1,8 @@
+Tue Apr 24 21:43:58 2012  Yusuke Endoh  <mame@t...>
+
+	* lib/net/smtp.rb (check_continue): raise an error with an explanatory
+	  message.  [ruby-core:35854] [Feature #4598]
+
 Tue Apr 24 21:11:31 2012  NARUSE, Yui  <naruse@r...>
 
 	* lib/optparse.rb (OptionParser#to_a): should split by end-of-line,
Index: lib/net/smtp.rb
===================================================================
--- lib/net/smtp.rb	(revision 35463)
+++ lib/net/smtp.rb	(revision 35464)
@@ -955,7 +955,7 @@
 
     def check_continue(res)
       unless res.continue?
-        raise SMTPUnknownError, "could not get 3xx (#{res.status})"
+        raise SMTPUnknownError, "could not get 3xx (#{res.status}: #{res.string})"
       end
     end
 

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

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