[MacRuby/MacRuby] 125dc5: Fix error message in rb_define_module_under
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 125dc53b2dfe97c03783065070c835919e04ca02 https://github.com/MacRuby/MacRuby/commit/125dc53b2dfe97c03783065070c835919e... Author: Mark Rada <mrada@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)"
participants (1)
-
noreply@github.com