Revision: 786 http://trac.macosforge.org/projects/ruby/changeset/786 Author: eloy.de.enige@gmail.com Date: 2009-01-13 06:14:02 -0800 (Tue, 13 Jan 2009) Log Message: ----------- 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. Modified Paths: -------------- MacRuby/trunk/ext/syck/rubyext.c Modified: MacRuby/trunk/ext/syck/rubyext.c =================================================================== --- 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;