summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-29 08:38:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-29 08:38:04 +0000
commit1a3e7ca11f3dd7d78a2f24d35260f8cfd50f3cc0 (patch)
treed17a5a8348edc0237488cf15b28458ebb8bf75e6 /insns.def
parent84de36c74831bb6420fcd3c224fc515380e28350 (diff)
insns.def: no quoting
* insns.def (defineclass): do not quote unprintable characters at raising an exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def8
1 files changed, 4 insertions, 4 deletions
diff --git a/insns.def b/insns.def
index f9ff0a4f74..70b4cfb69e 100644
--- a/insns.def
+++ b/insns.def
@@ -844,7 +844,7 @@ defineclass
if (VM_DEFINECLASS_HAS_SUPERCLASS_P(flags) &&
!RB_TYPE_P(super, T_CLASS)) {
- rb_raise(rb_eTypeError, "superclass must be a Class (% "PRIsVALUE" given)",
+ rb_raise(rb_eTypeError, "superclass must be a Class (%"PRIsVALUE" given)",
rb_obj_class(super));
}
@@ -861,7 +861,7 @@ defineclass
klass = VM_DEFINECLASS_SCOPED_P(flags) ?
rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
if (!RB_TYPE_P(klass, T_CLASS)) {
- rb_raise(rb_eTypeError, "% "PRIsVALUE" is not a class", rb_id2str(id));
+ rb_raise(rb_eTypeError, "%"PRIsVALUE" is not a class", rb_id2str(id));
}
if (super != rb_cObject) {
@@ -869,7 +869,7 @@ defineclass
tmp = rb_class_real(RCLASS_SUPER(klass));
if (tmp != super) {
- rb_raise(rb_eTypeError, "superclass mismatch for class % "PRIsVALUE"",
+ rb_raise(rb_eTypeError, "superclass mismatch for class %"PRIsVALUE"",
rb_id2str(id));
}
}
@@ -899,7 +899,7 @@ defineclass
rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
/* already exist */
if (!RB_TYPE_P(klass, T_MODULE)) {
- rb_raise(rb_eTypeError, "% "PRIsVALUE" is not a module", rb_id2str(id));
+ rb_raise(rb_eTypeError, "%"PRIsVALUE" is not a module", rb_id2str(id));
}
}
else {