Instead of only telling the user that syck was unable to find a valid subclass when transferring, also display the subclass path that it has found to be invalid.
--- MacRuby/trunk/ext/syck/rubyext.c 2009-01-13 13:22:19 UTC (rev 785)
+++ MacRuby/trunk/ext/syck/rubyext.c 2009-01-13 14:14:02 UTC (rev 786)
@@ -1109,7 +1109,9 @@
}
else /* workaround for SEGV. real fix please */
{
- rb_raise( rb_eTypeError, "invalid subclass" );
+ VALUE msg = rb_str_new2( "invalid subclass: " );
+ rb_str_append( msg, subclass );
+ rb_raise( rb_eTypeError, RSTRING_PTR(msg) );
}
}
break;