From 8e7303ae4ef0e4b4d8fa6c482fc3e1d2cce78f3d Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 28 Jan 2009 13:54:21 +0000 Subject: merge revision(s) 19690: * eval.c (rb_mod_modfunc): method undefined in included module may not have nd_body. [ruby-core:18738] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@21857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index e9da97f781..8eb16853af 100644 --- a/eval.c +++ b/eval.c @@ -7697,7 +7697,7 @@ rb_mod_modfunc(argc, argv, module) body = search_method(rb_cObject, id, &m); } if (body == 0 || body->nd_body == 0) { - rb_bug("undefined method `%s'; can't happen", rb_id2name(id)); + print_undef(module, id); } if (nd_type(body->nd_body) != NODE_ZSUPER) { break; /* normal case: need not to follow 'super' link */ -- cgit v1.2.3