From cebcf8dbf95a8bb397a1909b85f26c24e9772f0f Mon Sep 17 00:00:00 2001 From: tadf Date: Mon, 31 Mar 2008 15:19:39 +0000 Subject: revert. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rational.c') diff --git a/rational.c b/rational.c index 90b227faf..7165e9323 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]; -- cgit