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

ruby-changes:29106

From: akr <ko1@a...>
Date: Sat, 8 Jun 2013 07:16:30 +0900 (JST)
Subject: [ruby-changes:29106] akr:r41158 (trunk): Refine error messages.

akr	2013-06-08 07:16:15 +0900 (Sat, 08 Jun 2013)

  New Revision: 41158

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

  Log:
    Refine error messages.

  Modified files:
    trunk/bignum.c

Index: bignum.c
===================================================================
--- bignum.c	(revision 41157)
+++ bignum.c	(revision 41158)
@@ -552,11 +552,11 @@ validate_integer_pack_format(size_t word https://github.com/ruby/ruby/blob/trunk/bignum.c#L552
     int byteorder_bits = flags & INTEGER_PACK_BYTEORDER_MASK;
     if (wordorder_bits != INTEGER_PACK_MSWORD_FIRST &&
         wordorder_bits != INTEGER_PACK_LSWORD_FIRST)
-        rb_raise(rb_eArgError, "unexpected wordorder");
+        rb_raise(rb_eArgError, "unexpected word order");
     if (byteorder_bits != INTEGER_PACK_MSBYTE_FIRST &&
         byteorder_bits != INTEGER_PACK_LSBYTE_FIRST &&
         byteorder_bits != INTEGER_PACK_NATIVE_BYTE_ORDER)
-        rb_raise(rb_eArgError, "unexpected endian");
+        rb_raise(rb_eArgError, "unexpected byte order");
     if (wordsize == 0)
         rb_raise(rb_eArgError, "invalid wordsize: %"PRI_SIZE_PREFIX"u", wordsize);
     if (SSIZE_MAX < wordsize)

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

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