aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 16:54:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 16:54:08 +0000
commit4010448770965a9f5423da270337f52931aa3e74 (patch)
tree2e2a03fb208edb4067735105ccc9f1dfa8636292 /object.c
parent88afcb09beae9807fd4c763020b16bff16b3c6b4 (diff)
downloadruby-4010448770965a9f5423da270337f52931aa3e74.tar.gz
object.c: fix error message
* object.c (rb_mod_const_get): make error message at uninterned string consistent with symbols. [ruby-dev:49498] [Bug #12089] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 2497043b46..afb9dd6715 100644
--- a/object.c
+++ b/object.c
@@ -2139,7 +2139,7 @@ rb_mod_const_get(int argc, VALUE *argv, VALUE mod)
continue;
}
else {
- rb_name_err_raise("uninitialized constant %2$s::%1$s", mod, part);
+ rb_mod_const_missing(mod, part);
}
}
if (!rb_is_const_id(id)) {