diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-28 17:10:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-28 17:10:00 +0000 |
commit | d9d34f679b2d671ec3cb5e35fc0bb518d941e091 (patch) | |
tree | a5ad9510c94450dbdb7f09d9f48c66835a8755fc /insns.def | |
parent | b8f6031a6840265b2ee0fdf85bbcec95ae5fa5dd (diff) | |
download | ruby-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.def | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |