summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 02:45:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 02:45:23 +0000
commit88d5dcc8de20a613d35827198a30010e7ed4279b (patch)
tree7e5d3b3352dbd38446002315e32d41f271167573 /object.c
parentba32fdd167304025106d9d79eb12388b29a4b1e6 (diff)
* exception error messages updated. [ruby-core:04497]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index e259d55..20c6e34 100644
--- a/object.c
+++ b/object.c
@@ -2046,7 +2046,7 @@ convert_type(val, tname, method, raise)
m = rb_intern(method);
if (!rb_respond_to(val, m)) {
if (raise) {
- rb_raise(rb_eTypeError, "cannot convert %s into %s",
+ rb_raise(rb_eTypeError, "can't convert %s into %s",
NIL_P(val) ? "nil" :
val == Qtrue ? "true" :
val == Qfalse ? "false" :
@@ -2285,7 +2285,7 @@ rb_Float(val)
return rb_float_new(rb_str_to_dbl(val, Qtrue));
case T_NIL:
- rb_raise(rb_eTypeError, "cannot convert nil into Float");
+ rb_raise(rb_eTypeError, "can't convert nil into Float");
break;
default: