From 8790fdce57e4fc108723a1d26aa03b3e19ed4d31 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 16:54:08 +0000 Subject: 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 --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') 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)) { -- cgit v1.2.3