Permalink
Browse files

* marshal.c (w_object): Fix exception message when _dump_data is not

	  defined on a T_DATA object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 9fb5dca commit cb0f9d5fafd6cb1ad138b28d9e69566ff29f923f @drbrain drbrain committed Aug 5, 2011
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1 marshal.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Sat Aug 6 07:06:34 2011 Eric Hodel <drbrain@segment7.net>
+
+ * marshal.c (w_object): Fix exception message when _dump_data is not
+ defined on a T_DATA object.
+
Fri Aug 5 22:16:20 2011 Naohisa Goto <ngotogenome@gmail.com>
* numeric.c (rb_infinity, rb_nan): use WORDS_BIGENDIAN to get endian.
View
2 marshal.c
@@ -824,7 +824,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
if (!rb_respond_to(obj, s_dump_data)) {
rb_raise(rb_eTypeError,
- "no marshal_dump is defined for class %s",
+ "no _dump_data is defined for class %s",
rb_obj_classname(obj));
}
v = rb_funcall(obj, s_dump_data, 0);

0 comments on commit cb0f9d5

Please sign in to comment.