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

ruby-changes:51772

From: nobu <ko1@a...>
Date: Tue, 17 Jul 2018 10:22:47 +0900 (JST)
Subject: [ruby-changes:51772] nobu:r63984 (trunk): Fix message when `order` was an invalid value

nobu	2018-07-17 10:22:32 +0900 (Tue, 17 Jul 2018)

  New Revision: 63984

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

  Log:
    Fix message when `order` was an invalid value
    
    The symbol that can be used is `:bottom`, not `:down`.
    Ref: https://github.com/ruby/ruby/blob/e39b2cff8ac2dc93b35bd43ffcce3ded8e3b4c25/error.c#L1061
    
    [Fix GH-1916]
    
    From: yuuji.yaginuma <yuuji.yaginuma@g...>

  Modified files:
    trunk/error.c
Index: error.c
===================================================================
--- error.c	(revision 63983)
+++ error.c	(revision 63984)
@@ -1061,7 +1061,7 @@ exc_full_message(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/error.c#L1061
 	    if (id == id_bottom) args[kw_order] = Qtrue;
 	    else if (id == id_top) args[kw_order] = Qfalse;
 	    else {
-		rb_raise(rb_eArgError, "expected :top or :down as "
+		rb_raise(rb_eArgError, "expected :top or :bottom as "
 			 "order: %+"PRIsVALUE, args[kw_order]);
 	    }
 	}

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

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