diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-05 07:50:59 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-05 07:50:59 +0000 |
commit | b12904e85f5a9cc6c82f0fd06783ba219f334932 (patch) | |
tree | d34738fecfaf64eb47bf162e3ff6977262cc02de /object.c | |
parent | d6c60dbf6d42f411a31a1c2e768a5a986a270a8c (diff) | |
download | bundler-b12904e85f5a9cc6c82f0fd06783ba219f334932.tar.gz |
* error.c (Init_Exception): NameError went under StandardError,
and NoMethodError went under NameError.
* parse.y (rb_intern): non identifier symbols should be
categorized as ID_JUNK. [new]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -769,7 +769,7 @@ rb_mod_const_get(mod, name) ID id = rb_to_id(name); if (!rb_is_const_id(id)) { - rb_raise(rb_eNameError, "wrong constant name %s", name); + rb_raise(rb_eNameError, "wrong constant name %s", rb_id2name(id)); } return rb_const_get(mod, id); } @@ -781,7 +781,7 @@ rb_mod_const_set(mod, name, value) ID id = rb_to_id(name); if (!rb_is_const_id(id)) { - rb_raise(rb_eNameError, "wrong constant name %s", name); + rb_raise(rb_eNameError, "wrong constant name %s", rb_id2name(id)); } rb_const_set(mod, id, value); return value; @@ -794,7 +794,7 @@ rb_mod_const_defined(mod, name) ID id = rb_to_id(name); if (!rb_is_const_id(id)) { - rb_raise(rb_eNameError, "wrong constant name %s", name); + rb_raise(rb_eNameError, "wrong constant name %s", rb_id2name(id)); } return rb_const_defined_at(mod, id); } |