[macruby-changes] [786] MacRuby/trunk/ext/syck/rubyext.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 13 06:14:03 PST 2009


Revision: 786
          http://trac.macosforge.org/projects/ruby/changeset/786
Author:   eloy.de.enige at 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090113/83149dfe/attachment-0001.html>


More information about the macruby-changes mailing list