From dc08e8a60f3ea931598f7d240c76ad3f09ae3cef Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Apr 2003 18:33:52 +0000 Subject: * variable.c (rb_mod_name): search module path if classname is not set yet. (ruby-bugs-ja PR#424) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index ce43886348..afd2e197a7 100644 --- a/object.c +++ b/object.c @@ -945,7 +945,7 @@ rb_obj_ivar_get(obj, iv) ID id = rb_to_id(iv); if (!rb_is_instance_id(id)) { - rb_name_error(id, "`%s' is not an instance variable name", rb_id2name(id)); + rb_name_error(id, "`%s' is not allowed as an instance variable name", rb_id2name(id)); } return rb_ivar_get(obj, id); } @@ -957,7 +957,7 @@ rb_obj_ivar_set(obj, iv, val) ID id = rb_to_id(iv); if (!rb_is_instance_id(id)) { - rb_name_error(id, "`%s' is not an instance variable name", rb_id2name(id)); + rb_name_error(id, "`%s' is not allowed as an instance variable name", rb_id2name(id)); } return rb_ivar_set(obj, id, val); } -- cgit v1.2.3