ruby-changes:9640
From: tadf <ko1@a...>
Date: Mon, 29 Dec 2008 23:26:41 +0900 (JST)
Subject: [ruby-changes:9640] Ruby:r21180 (trunk): * bignum.c (rb_cstr_to_inum): changed an error message.
tadf 2008-12-29 23:26:16 +0900 (Mon, 29 Dec 2008) New Revision: 21180 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21180 Log: * bignum.c (rb_cstr_to_inum): changed an error message. * complex.c (string_to_c_strict): ditto. * rational.c (string_to_r_strict): ditto. Modified files: trunk/ChangeLog trunk/bignum.c trunk/complex.c trunk/rational.c Index: complex.c =================================================================== --- complex.c (revision 21179) +++ complex.c (revision 21180) @@ -1210,7 +1210,7 @@ VALUE a = string_to_c_internal(self); if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) { VALUE s = f_inspect(self); - rb_raise(rb_eArgError, "invalid value for Complex: %s", + rb_raise(rb_eArgError, "invalid value for convert(): %s", StringValuePtr(s)); } return RARRAY_PTR(a)[0]; Index: ChangeLog =================================================================== --- ChangeLog (revision 21179) +++ ChangeLog (revision 21180) @@ -1,3 +1,11 @@ +Mon Dec 29 23:18:52 2008 Tadayoshi Funaba <tadf@d...> + + * bignum.c (rb_cstr_to_inum): changed an error message. + + * complex.c (string_to_c_strict): ditto. + + * rational.c (string_to_r_strict): ditto. + Mon Dec 29 22:37:57 2008 Yukihiro Matsumoto <matz@r...> * pack.c (pack_pack): template f should not accept non float Index: bignum.c =================================================================== --- bignum.c (revision 21179) +++ bignum.c (revision 21180) @@ -583,7 +583,7 @@ while (*str && ISSPACE(*str)) str++; if (*str) { bad: - rb_invalid_str(s, "Integer"); + rb_invalid_str(s, "Integer()"); } } Index: rational.c =================================================================== --- rational.c (revision 21179) +++ rational.c (revision 21180) @@ -1438,7 +1438,7 @@ VALUE a = string_to_r_internal(self); if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) { VALUE s = f_inspect(self); - rb_raise(rb_eArgError, "invalid value for Rational: %s", + rb_raise(rb_eArgError, "invalid value for convert(): %s", StringValuePtr(s)); } return RARRAY_PTR(a)[0]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/