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 | b90a5f9334a84b46a49b0966ecd250c2e52a8312 (patch) | |
tree | a5ad9510c94450dbdb7f09d9f48c66835a8755fc /insns.def | |
parent | 491ace2dbebcba5e6f36b9e877c585823fd583f1 (diff) |
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) { |