diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-28 02:45:23 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-28 02:45:23 +0000 |
| commit | 8db23b37400493071ce7599f90474f6ea1a26761 (patch) | |
| tree | 7e5d3b3352dbd38446002315e32d41f271167573 /object.c | |
| parent | 8c4118a72a4ac2872b1ad722d59b2231c563b6a7 (diff) | |
| download | ruby-8db23b37400493071ce7599f90474f6ea1a26761.tar.gz ruby-8db23b37400493071ce7599f90474f6ea1a26761.tar.xz ruby-8db23b37400493071ce7599f90474f6ea1a26761.zip | |
* exception error messages updated. [ruby-core:04497]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |
