* marshal.c (w_object): wrong method name in the message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-10-06 07:23:40 +00:00
parent 64e098503a
commit 2a07445e0b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Oct 6 16:23:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (w_object): wrong method name in the message.
Mon Oct 6 16:02:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org> Mon Oct 6 16:02:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (stmt): END in method should cause warning. * parse.y (stmt): END in method should cause warning.

View File

@ -649,7 +649,7 @@ w_object(obj, arg, limit, weak)
w_class(TYPE_DATA, obj, arg); w_class(TYPE_DATA, obj, arg);
if (!rb_respond_to(obj, s_dump_data)) { if (!rb_respond_to(obj, s_dump_data)) {
rb_raise(rb_eTypeError, rb_raise(rb_eTypeError,
"class %s needs to have instance method `marshal_dump'", "class %s needs to have instance method `_dump_data'",
rb_obj_classname(obj)); rb_obj_classname(obj));
} }
v = rb_funcall(obj, s_dump_data, 0); v = rb_funcall(obj, s_dump_data, 0);