diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 14:26:16 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 14:26:16 +0000 |
commit | c7e236efc17ca06d73fd17ed2edb736ed09129d8 (patch) | |
tree | 442854feaeec204ccbfe3d1202ee3a717135562d /complex.c | |
parent | ad004644893b2f867521c3f215753cf8c04ea887 (diff) | |
download | ruby-c7e236efc17ca06d73fd17ed2edb736ed09129d8.tar.gz |
* bignum.c (rb_cstr_to_inum): changed an error message.
* complex.c (string_to_c_strict): ditto.
* rational.c (string_to_r_strict): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1210,7 +1210,7 @@ string_to_c_strict(VALUE self) 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]; |