summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/io.c b/io.c
index 33c97a68d3..82b8469d40 100644
--- a/io.c
+++ b/io.c
@@ -7498,8 +7498,9 @@ advice_arg_check(VALUE advice)
advice != sym_willneed &&
advice != sym_dontneed &&
advice != sym_noreuse) {
- rb_raise(rb_eNotImpError, "Unsupported advice: :%s",
- RSTRING_PTR(rb_id2str(SYM2ID(advice))));
+ VALUE symname = rb_inspect(advice);
+ rb_raise(rb_eNotImpError, "Unsupported advice: %s",
+ StringValuePtr(symname));
}
}