mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_method_missing): avoid an warning "too many arguments
for format string" on "./ruby -ve 'def m() super end; m'". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ccbdd90865
commit
a03d4a0635
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jun 17 11:11:07 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* eval.c (rb_method_missing): avoid an warning "too many arguments
|
||||
for format string" on "./ruby -ve 'def m() super end; m'".
|
||||
|
||||
Sat Jun 16 22:24:17 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* gc.c (garbage_collect): re-introduce ruby_current_node marking code.
|
||||
|
|
2
eval.c
2
eval.c
|
@ -1303,7 +1303,7 @@ rb_method_missing(int argc, const VALUE *argv, VALUE obj)
|
|||
exc = rb_eNameError;
|
||||
}
|
||||
else if (last_call_status & NOEX_SUPER) {
|
||||
format = "super: no superclass method `%s'";
|
||||
format = "super: no superclass method `%s' for %s";
|
||||
}
|
||||
if (!format) {
|
||||
format = "undefined method `%s' for %s";
|
||||
|
|
Loading…
Reference in a new issue