diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 6bf3c434ca..c9f0130512 100644 --- a/vm_method.c +++ b/vm_method.c @@ -205,7 +205,7 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type, #if NOEX_NOREDEF if (old_me->flag & NOEX_NOREDEF) { rb_raise(rb_eTypeError, "cannot redefine %"PRIsVALUE"#%"PRIsVALUE, - klass, rb_id2str(mid)); + rb_class_name(klass), rb_id2str(mid)); } #endif rb_vm_check_redefinition_opt_method(old_me, klass); |