aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-28 17:10:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-28 17:10:00 +0000
commitd9d34f679b2d671ec3cb5e35fc0bb518d941e091 (patch)
treea5ad9510c94450dbdb7f09d9f48c66835a8755fc /insns.def
parentb8f6031a6840265b2ee0fdf85bbcec95ae5fa5dd (diff)
downloadruby-d9d34f679b2d671ec3cb5e35fc0bb518d941e091.tar.gz
insns.def: preserve encoding
* insns.def (defineclass): preserve encoding of name in error messages for non-class super. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index dd6e8e24b5..b983140fd8 100644
--- a/insns.def
+++ b/insns.def
@@ -844,8 +844,8 @@ defineclass
if (VM_DEFINECLASS_HAS_SUPERCLASS_P(flags) &&
!RB_TYPE_P(super, T_CLASS)) {
- rb_raise(rb_eTypeError, "superclass must be a Class (%s given)",
- rb_obj_classname(super));
+ rb_raise(rb_eTypeError, "superclass must be a Class (% "PRIsVALUE" given)",
+ rb_obj_class(super));
}
if (super == Qnil) {