summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/marshal.c b/marshal.c
index 588b3deed2..061a8d5f31 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1381,8 +1381,7 @@ path2class(VALUE path)
VALUE v = rb_path_to_class(path);
if (!RB_TYPE_P(v, T_CLASS)) {
- rb_raise(rb_eArgError, "%.*s does not refer to class",
- (int)RSTRING_LEN(path), RSTRING_PTR(path));
+ rb_raise(rb_eArgError, "%"PRIsVALUE" does not refer to class", path);
}
return v;
}
@@ -1393,8 +1392,7 @@ path2module(VALUE path)
VALUE v = rb_path_to_class(path);
if (!RB_TYPE_P(v, T_MODULE)) {
- rb_raise(rb_eArgError, "%.*s does not refer to module",
- (int)RSTRING_LEN(path), RSTRING_PTR(path));
+ rb_raise(rb_eArgError, "%"PRIsVALUE" does not refer to module", path);
}
return v;
}