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

ruby-changes:36882

From: nobu <ko1@a...>
Date: Wed, 24 Dec 2014 13:00:42 +0900 (JST)
Subject: [ruby-changes:36882] nobu:r48963 (trunk): downloader.rb: fix exception arguments

nobu	2014-12-24 13:00:27 +0900 (Wed, 24 Dec 2014)

  New Revision: 48963

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

  Log:
    downloader.rb: fix exception arguments
    
    * tool/downloader.rb (Downloader.download): fix the exception to
      re-raise.  initialize methods of subclasses of Exception may
      have different parameters.  [ruby-core:67086] [Bug #10639]

  Modified files:
    trunk/ChangeLog
    trunk/tool/downloader.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48962)
+++ ChangeLog	(revision 48963)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 24 13:00:24 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/downloader.rb (Downloader.download): fix the exception to
+	  re-raise.  initialize methods of subclasses of Exception may
+	  have different parameters.  [ruby-core:67086] [Bug #10639]
+
 Wed Dec 24 12:16:19 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* ruby.h (rb_data_type_t): revert r48647 and revise parent member.
Index: tool/downloader.rb
===================================================================
--- tool/downloader.rb	(revision 48962)
+++ tool/downloader.rb	(revision 48963)
@@ -107,7 +107,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L107
     end
     true
   rescue => e
-    raise e.class, "failed to download #{name}\n#{e.message}: #{url}", e.backtrace
+    raise "failed to download #{name}\n#{e.message}: #{url}"
   end
 end
 

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

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