diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c index 8ca3f936e4..6a394811b6 100644 --- a/vm_method.c +++ b/vm_method.c @@ -865,8 +865,8 @@ rb_undef(VALUE klass, ID id) else if (RB_TYPE_P(c, T_MODULE)) { s0 = " module"; } - rb_name_error(id, "undefined method `%s' for%s `%s'", - rb_id2name(id), s0, rb_class2name(c)); + rb_name_error(id, "undefined method `%"PRIsVALUE"' for%s `%"PRIsVALUE"'", + QUOTE_ID(id), s0, rb_class_name(c)); } rb_add_method(klass, id, VM_METHOD_TYPE_UNDEF, 0, NOEX_PUBLIC); |