[macruby-changes] [MacRuby/MacRuby] 125dc5: Fix error message in rb_define_module_under

noreply at github.com noreply at github.com
Sun Jun 12 12:04:50 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/MacRuby/MacRuby

Commit: 125dc53b2dfe97c03783065070c835919e04ca02
    https://github.com/MacRuby/MacRuby/commit/125dc53b2dfe97c03783065070c835919e04ca02
Author: Mark Rada <mrada at marketcircle.com>
Date:   2011-06-12 (Sun, 12 Jun 2011)

Changed paths:
  M class.c

Log Message:
-----------
Fix error message in rb_define_module_under

This fixes calls like:

rb_define_module_under("JSON::GeneratorMethods","NSString")

Raising errors like:

"JSON::GeneratorMethods::Class is not a module (TypeError)"

Which would indicate that I was trying to declare a module called Class in
JSON::GeneratorMethods, when in fact I was trying to declare "NSString", but
it found a class named "NSString".

Now the error message will be appropriateTo look like:

"JSON::GeneratorMethods::NSString:Class is not a module (TypeError)"




More information about the macruby-changes mailing list