diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-31 15:19:39 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-31 15:19:39 +0000 |
commit | 459aa9f1c5c22cd0fb9c7c4390158a43d0653ede (patch) | |
tree | 5175e263f0000803525c8afa429a07477cca1b28 /rational.c | |
parent | 88a4961cb2bf52186d188bb8feaed9465c8acddc (diff) | |
download | ruby-459aa9f1c5c22cd0fb9c7c4390158a43d0653ede.tar.gz |
revert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c index 90b227faf5..7165e93232 100644 --- a/rational.c +++ b/rational.c @@ -1432,7 +1432,7 @@ string_to_r_strict(VALUE self) 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_eTypeError, "invalid value for Rational: %s", + rb_raise(rb_eArgError, "invalid value for Rational: %s", StringValuePtr(s)); } return RARRAY_PTR(a)[0]; |